mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-23 21:53:09 +02:00
Clean up
This commit is contained in:
parent
1236a09247
commit
c6b6c8afbd
2 changed files with 0 additions and 8 deletions
|
@ -40,9 +40,6 @@
|
||||||
const data = JSON.parse(vuex);
|
const data = JSON.parse(vuex);
|
||||||
if (data.device.lang) lang = data.device.lang;
|
if (data.device.lang) lang = data.device.lang;
|
||||||
}
|
}
|
||||||
|
|
||||||
const storedLang = localStorage.getItem('lang');
|
|
||||||
if (storedLang) lang = storedLang;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
// Detect the user agent
|
// Detect the user agent
|
||||||
|
|
|
@ -10,11 +10,6 @@
|
||||||
localStorage.setItem('v', v);
|
localStorage.setItem('v', v);
|
||||||
}
|
}
|
||||||
|
|
||||||
const lang = window.prompt('Enter language (optional):');
|
|
||||||
if (lang && lang.length > 0) {
|
|
||||||
localStorage.setItem('lang', lang);
|
|
||||||
}
|
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
location.href = '/';
|
location.href = '/';
|
||||||
}, 500);
|
}, 500);
|
||||||
|
|
Loading…
Reference in a new issue