mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-28 05:08:00 +02:00
closes #136
This commit is contained in:
parent
be45a401b7
commit
27126b64be
6 changed files with 169 additions and 181 deletions
|
@ -112,7 +112,8 @@ onBeforeMount(() => {
|
|||
if (store.prm == 'true') document.body.classList.add('prm');
|
||||
|
||||
/* Set the default locale if set */
|
||||
if (store.locale) setupLocale(store.locale);
|
||||
const loc = store.locale || (navigator.language.startsWith('en') ? null : navigator.language)
|
||||
if (loc) setupLocale(loc);
|
||||
|
||||
/* Set the default tab */
|
||||
if (location.pathname == '/' && store.page) nav.state.page = store.page;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue