23 lines
647 B
JavaScript
23 lines
647 B
JavaScript
"use strict";
|
|
|
|
(function () {
|
|
const APP_VERSION = "39.16.74";
|
|
const APP_BUILD = "tarinai-ui-v39-16-74";
|
|
const APP_CACHE_NAME = `tarinai-colony-${APP_VERSION}`;
|
|
const STATIC_VERSION_PARAM = `v=${APP_VERSION}`;
|
|
|
|
const config = Object.freeze({
|
|
version: APP_VERSION,
|
|
build: APP_BUILD,
|
|
cacheName: APP_CACHE_NAME,
|
|
staticVersionParam: STATIC_VERSION_PARAM,
|
|
withVersion(path) {
|
|
const p = String(path || "");
|
|
if (!p) return p;
|
|
return p.includes("?") ? `${p}&${STATIC_VERSION_PARAM}` : `${p}?${STATIC_VERSION_PARAM}`;
|
|
},
|
|
});
|
|
|
|
window.TARINAI_VERSION = APP_VERSION;
|
|
window.TARINAI_APP = config;
|
|
})();
|