aboutsummaryrefslogtreecommitdiff
path: root/modules/core/module-loader.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/module-loader.js')
-rw-r--r--modules/core/module-loader.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/core/module-loader.js b/modules/core/module-loader.js
index 329d0f7..29a1b62 100644
--- a/modules/core/module-loader.js
+++ b/modules/core/module-loader.js
@@ -4,8 +4,13 @@
// Core module bundle loaded synchronously in main.html.
// This loader only handles version cache-busting, splash, terminal init, and optional ext modules.
- const LATEST_VER = 'v4.6.110';
+ const LATEST_VER = 'v4.6.115';
const CACHE = '?v=' + LATEST_VER;
+ // Exposed so ext modules can register their own URL with the same cache-busting version
+ // instead of an unversioned path the browser may already have cached (shell.js did).
+ if (typeof window !== 'undefined' && window.webx11 && window.webx11.moduleManager) {
+ window.webx11.moduleManager.LATEST_VER = LATEST_VER;
+ }
const stored = localStorage.getItem('webx11_cache_ver');
if (stored !== LATEST_VER) {
localStorage.setItem('webx11_cache_ver', LATEST_VER);