@authrim/setup 0.1.106 → 0.1.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/web/ui.js +3 -3
- package/package.json +1 -1
package/dist/web/ui.js
CHANGED
|
@@ -1785,8 +1785,8 @@ export function getHtmlTemplate(sessionToken, manageOnly, locale = 'en', transla
|
|
|
1785
1785
|
}
|
|
1786
1786
|
}
|
|
1787
1787
|
|
|
1788
|
-
// Initialize translations on page load
|
|
1789
|
-
(function() {
|
|
1788
|
+
// Initialize translations on page load (must wait for DOM to be ready)
|
|
1789
|
+
document.addEventListener('DOMContentLoaded', function() {
|
|
1790
1790
|
const savedLang = localStorage.getItem('authrim_setup_lang');
|
|
1791
1791
|
const url = new URL(window.location.href);
|
|
1792
1792
|
const urlLang = url.searchParams.get('lang');
|
|
@@ -1812,7 +1812,7 @@ export function getHtmlTemplate(sessionToken, manageOnly, locale = 'en', transla
|
|
|
1812
1812
|
if (langSelect) {
|
|
1813
1813
|
langSelect.value = _currentLocale;
|
|
1814
1814
|
}
|
|
1815
|
-
})
|
|
1815
|
+
});
|
|
1816
1816
|
</script>
|
|
1817
1817
|
</head>
|
|
1818
1818
|
<body>
|