mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +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 { Capa, StorageResultType } from 'Common/Enums';
|
||||
|
|
@ -68,7 +67,7 @@ class AccountsUserSettings {
|
|||
setHash(root(), true);
|
||||
routeOff();
|
||||
|
||||
setTimeout(() => window.location.reload(), 1);
|
||||
setTimeout(() => location.reload(), 1);
|
||||
} else {
|
||||
getApp().accountsAndIdentities();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
import window from 'window';
|
||||
import ko from 'ko';
|
||||
|
||||
import Jua from 'Jua';
|
||||
|
||||
import { SaveSettingsStep, UploadErrorCode, Capa, Magics } from 'Common/Enums';
|
||||
import { changeTheme, convertThemeName } from 'Common/Utils';
|
||||
import { userBackground, themePreviewLink, uploadBackground } from 'Common/Links';
|
||||
|
|
@ -47,7 +44,7 @@ class ThemesUserSettings {
|
|||
});
|
||||
|
||||
this.background.hash.subscribe((value) => {
|
||||
const b = window.document.body, cl = window.document.documentElement.classList;
|
||||
const b = document.body, cl = document.documentElement.classList;
|
||||
if (!value) {
|
||||
cl.remove('UserBackground');
|
||||
b.removeAttribute('style');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue