mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Cleanup CSS and JS
Improve app loading error
This commit is contained in:
parent
2c69da61f0
commit
7e43bfc6b0
3 changed files with 14 additions and 29 deletions
|
|
@ -116,7 +116,7 @@ export class EmailAddressesComponent {
|
|||
)
|
||||
}
|
||||
}).throttle(500)
|
||||
: () => {};
|
||||
: () => 0;
|
||||
}
|
||||
|
||||
_focusTrigger(bValue) {
|
||||
|
|
|
|||
18
dev/boot.js
18
dev/boot.js
|
|
@ -60,27 +60,21 @@ win.rl = {
|
|||
},
|
||||
setWindowTitle: title => {
|
||||
title = null == title ? '' : '' + title;
|
||||
if (RL_APP_DATA.Title) {
|
||||
title += (title ? ' - ' : '') + RL_APP_DATA.Title;
|
||||
}
|
||||
doc.title = title;
|
||||
doc.title = RL_APP_DATA.Title ? title + (title ? ' - ' : '') + RL_APP_DATA.Title : title;
|
||||
},
|
||||
|
||||
initData: appData => {
|
||||
RL_APP_DATA = appData;
|
||||
|
||||
if (appData) {
|
||||
loadScript(appData.StaticLibJsLink)
|
||||
appData
|
||||
? loadScript(appData.StaticLibJsLink)
|
||||
.then(() => loadScript(appData.StaticAppJsLink))
|
||||
.then(() => appData.PluginsLink ? loadScript(appData.PluginsLink) : Promise.resolve())
|
||||
.then(() => win.__APP_BOOT())
|
||||
.catch(e => {
|
||||
showError(e.message);
|
||||
throw e;
|
||||
});
|
||||
} else {
|
||||
showError();
|
||||
}
|
||||
})
|
||||
: showError();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -108,6 +102,6 @@ try {
|
|||
css.href = css.dataset.href;
|
||||
|
||||
loadScript(`./?/${admin ? 'Admin' : ''}AppData/0/${Math.random().toString().substr(2)}/`)
|
||||
.then(() => {});
|
||||
.then(() => 0);
|
||||
|
||||
})(this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue