mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
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:
parent
dbf9755700
commit
6c370abac3
8 changed files with 111 additions and 114 deletions
|
|
@ -144,7 +144,12 @@ win.rl = {
|
|||
rl.hash.set();
|
||||
|
||||
if (appData) {
|
||||
if (appData.NewThemeLink) {
|
||||
eId('app-theme-link').href = appData.NewThemeLink;
|
||||
}
|
||||
|
||||
loadScript(appData.StaticLibJsLink)
|
||||
.then(() => loadScript(appData.LangLink))
|
||||
.then(() => loadScript(appData.StaticAppJsLink))
|
||||
.then(() => appData.PluginsLink ? loadScript(appData.PluginsLink) : Promise.resolve())
|
||||
.then(() => win.__APP_BOOT ? win.__APP_BOOT(showError) : showError())
|
||||
|
|
|
|||
10
dev/bootstrap.js
vendored
10
dev/bootstrap.js
vendored
|
|
@ -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);
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue