fix: theme flash + language persistence on navigation

- Remove setTimeout re-application of theme in app-init.js that caused flash
- Fix quotations.html: add missing i18n.js and correct script load order
- Fix whatsapp.html: add missing app-init.js before sidebar.js
- Ensure i18n.js always loads before sidebar.js for proper translation
This commit is contained in:
2026-05-26 07:41:38 +00:00
parent 91caf91b79
commit 51f64921a5
3 changed files with 3 additions and 7 deletions

View File

@@ -167,12 +167,6 @@
});
}
// Also prevent any DOMContentLoaded theme switchers from overriding
// by re-applying our saved theme after a tick
setTimeout(function() {
document.documentElement.setAttribute('data-theme', savedTheme);
}, 100);
// ─── Expose globally ───
window.POS_USER = {
name: name,