diff --git a/dev/Styles/_progressjs.css b/dev/Styles/_progressjs.css index 531fe0283..737419798 100644 --- a/dev/Styles/_progressjs.css +++ b/dev/Styles/_progressjs.css @@ -1,4 +1,4 @@ -.progressjs { +#progressjs { left: 0; position: fixed; top: 0; diff --git a/dev/boot.js b/dev/boot.js index 85d8252c2..12e1794e4 100644 --- a/dev/boot.js +++ b/dev/boot.js @@ -33,13 +33,14 @@ const } }; } + return win[name]; }, STORAGE_KEY = '__rlA', TIME_KEY = '__rlT', AUTH_KEY = 'AuthAccountHash', - storage = () => window.sessionStorage, + storage = Storage('session'), timestamp = () => Math.round(Date.now() / 1000), - setTimestamp = () => storage().setItem(TIME_KEY, timestamp()), + setTimestamp = () => storage.setItem(TIME_KEY, timestamp()), showError = () => { eId('rl-loading').hidden = true; @@ -83,29 +84,29 @@ if (!navigator || !navigator.cookieEnabled) { } let pStep = 0, - container = doc.querySelector('.progressjs'), - progress = doc.querySelector('.progressjs-inner'), + container = eId('progressjs'), + progress = container.querySelector('.progressjs-inner'), RL_APP_DATA = {}; win.rl = { hash: { // getHash - get: () => storage().getItem(STORAGE_KEY) || null, + get: () => storage.getItem(STORAGE_KEY) || null, // setHash set: () => { - storage().setItem(STORAGE_KEY, RL_APP_DATA && RL_APP_DATA[AUTH_KEY] + storage.setItem(STORAGE_KEY, RL_APP_DATA && RL_APP_DATA[AUTH_KEY] ? RL_APP_DATA[AUTH_KEY] : ''); setTimestamp(); }, // clearHash clear: () => { - storage().setItem(STORAGE_KEY, ''); + storage.setItem(STORAGE_KEY, ''); setTimestamp(); }, // checkTimestamp check: () => { - if (timestamp() > (parseInt(storage().getItem(TIME_KEY) || 0, 10) || 0) + 3600000) { + if (timestamp() > (parseInt(storage.getItem(TIME_KEY) || 0, 10) || 0) + 3600000) { // 60m rl.hash.clear(); return true; @@ -166,7 +167,6 @@ win.rl = { p.set(1); Storage('local'); -Storage('session'); // init section setInterval(setTimestamp, 60000); // 1m diff --git a/package.json b/package.json index 17c7f1bc6..4ea480652 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,6 @@ "eslint": "6.8.0", "eslint-plugin-prettier": "3.3.1", "gulp": "4.0.2", - "gulp-autoprefixer": "7.0.1", "gulp-cached": "1.1.1", "gulp-clean-css": "4.3.0", "gulp-concat-util": "0.5.5", diff --git a/snappymail/v/0.0.0/app/templates/Index.html b/snappymail/v/0.0.0/app/templates/Index.html index a3831c05f..2849f9770 100644 --- a/snappymail/v/0.0.0/app/templates/Index.html +++ b/snappymail/v/0.0.0/app/templates/Index.html @@ -41,7 +41,7 @@
-