Revert broken speedup idea for language and theme.

RainLoop removes AUTH_SPEC_TOKEN_KEY cookie, which kills browser refresh/F5
So had to put back the LangLink and NewThemeLink, for now
This commit is contained in:
djmaze 2021-04-26 21:56:11 +02:00
parent dbf9755700
commit 6c370abac3
8 changed files with 111 additions and 114 deletions

10
dev/bootstrap.js vendored
View file

@ -3,7 +3,7 @@ import { i18n } from 'Common/Translator';
import { root } from 'Common/Links';
export default (App) => {
export default App => {
addEventListener('keydown', event => {
event = event || window.event;
@ -136,10 +136,10 @@ export default (App) => {
};
window.__APP_BOOT = () => {
const cb = () => setTimeout(() => {
setTimeout(() => App.bootstart(), 10);
window.__APP_BOOT = null;
}, 10);
const cb = () => {
window.__APP_BOOT = null;
App.bootstart();
};
('loading' !== doc.readyState) ? cb() : doc.addEventListener('DOMContentLoaded', cb);
};
};