mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Made eslint using 'browser' environment and added globals, because RainLoop is used in browsers.
This also allowed to remove all webpack 'externals' overhead.
This commit is contained in:
parent
c3a213802d
commit
e7180a86ce
81 changed files with 1857 additions and 1259 deletions
|
|
@ -1,4 +1,3 @@
|
|||
import window from 'window';
|
||||
import ko from 'ko';
|
||||
|
||||
import { root } from 'Common/Links';
|
||||
|
|
@ -110,7 +109,7 @@ class AdminApp extends AbstractApp {
|
|||
CoreStore.coreVersionCompare(-2);
|
||||
if (StorageResultType.Success === result && data && data.Result) {
|
||||
CoreStore.coreReal(true);
|
||||
window.location.reload();
|
||||
location.reload();
|
||||
} else {
|
||||
CoreStore.coreReal(false);
|
||||
}
|
||||
|
|
@ -182,7 +181,7 @@ class AdminApp extends AbstractApp {
|
|||
|
||||
bootend(bootendCallback = null) {
|
||||
if (window.progressJs) {
|
||||
window.progressJs.end();
|
||||
progressJs.end();
|
||||
}
|
||||
|
||||
if (bootendCallback) {
|
||||
|
|
@ -204,7 +203,7 @@ class AdminApp extends AbstractApp {
|
|||
routeOff();
|
||||
|
||||
setTimeout(() =>
|
||||
window.location.href = '/'
|
||||
location.href = '/'
|
||||
, 1);
|
||||
} else {
|
||||
if (Settings.settingsGet('Auth')) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue