mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 11:39:21 +03:00
Upgraded some old JavaScript to ECMAScript 1.6
Removed some jQuery references Added JavaScript Globals.$htmlCL for frequently used window.document.documentElement.classList
This commit is contained in:
parent
a6a337e5ce
commit
0b0747b8dc
19 changed files with 142 additions and 151 deletions
|
|
@ -48,12 +48,12 @@ class ThemesUserSettings {
|
|||
});
|
||||
|
||||
this.background.hash.subscribe((value) => {
|
||||
const b = window.document.body;
|
||||
const b = window.document.body, cl = window.document.documentElement.classList;
|
||||
if (!value) {
|
||||
b.classList.remove('UserBackground');
|
||||
cl.remove('UserBackground');
|
||||
b.removeAttribute('style');
|
||||
} else {
|
||||
b.classList.add('UserBackground');
|
||||
cl.add('UserBackground');
|
||||
b.style.backgroundImage = "url("+userBackground(value)+")";
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue