Files
justice/www/html/realtimechat/public/js/version.js
T

13 lines
556 B
JavaScript

// ทุกครั้งที่มีการเพิ่มหรือเปลี่ยน ให้เพิ่ม v +0.0001
// แก้ค่าเดียวที่นี่ แล้วอัป query ?v=... ใน index.html / room.html ด้วย
window.APP_VERSION = '0.0006';
function setVersion() {
var t = document.querySelector('.version-tag');
if (t) t.textContent = 'v ' + window.APP_VERSION;
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', setVersion);
} else {
setVersion();
}