سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 4, 04:15 UTC
fix(cache): pin updated CSP-safe bundle failure guard on browser clients
davoodmehraban89 committed
Oct 13, 2026 at 01:30 UTC
260ef96287a30e6536f6ece738ff6c18b472eb7a
1 file changed
+2
-2
scripts/login-connectivity-check.mjs
+2
-2
@@ -7,8 +7,8 @@ assert(html.includes('id="auth-connectivity-check"'),'Missing diagnostic action'
7
assert(html.includes('id="auth-connectivity-result"'),'Missing accessible result');
8
assert(html.includes('id="auth-connectivity-result" aria-live="polite"'),'Diagnostic must announce updates without adding a conflicting global role=status');
9
assert(html.includes('js/login-connectivity.js?v=20261012-data-probe-v3'),'Missing versioned script');
10
-assert(html.includes('js/core.js?v=20261013-asset-failclosed-v1'),'Production login controls must use new cache version');
11
-assert(html.indexOf('<script src="js/login-connectivity.js?v=20261012-data-probe-v3"')<html.indexOf('<script src="js/core.js?v=20261013-asset-failclosed-v1"'),'Connectivity handler script must execute before core (not just preload)');
10
+assert(html.includes('js/core.js?v=20261013-static-pages-guard-v2'),'Production login controls must use new cache version');
11
+assert(html.indexOf('<script src="js/login-connectivity.js?v=20261012-data-probe-v3"')<html.indexOf('<script src="js/core.js?v=20261013-static-pages-guard-v2"'),'Connectivity handler script must execute before core (not just preload)');
12
assert(html.includes('js/bootstrap.js?v=20261013-ordered-bundle-v1'),'Parallel bootstrap must also be cache-busted');
13
assert(html.includes('id="auth-login-button"')&&html.includes('id="auth-login-status"'),'Login control requires real readiness/progress feedback');
14
assert(core.includes('window.FinoraAppAssetsReady'),'Authenticated workspace must remain gated until all module scripts settle');