mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 11:39:21 +03:00
Don't use webpack on boot.js
This commit is contained in:
parent
b837013cfb
commit
fcaa2fd6de
11 changed files with 167 additions and 388 deletions
|
|
@ -57,7 +57,6 @@ import QuotaStore from 'Stores/User/Quota';
|
|||
|
||||
import * as Local from 'Storage/Client';
|
||||
import * as Settings from 'Storage/Settings';
|
||||
import { checkTimestamp } from 'Storage/RainLoop';
|
||||
|
||||
import Remote from 'Remote/User/Ajax';
|
||||
import Promises from 'Promises/User/Ajax';
|
||||
|
|
@ -95,7 +94,7 @@ class AppUser extends AbstractApp {
|
|||
setInterval(() => {
|
||||
const currentTime = (new Date()).getTime();
|
||||
if (currentTime > (lastTime + interval + 1000)) {
|
||||
if (checkTimestamp()) {
|
||||
if (RainLoop.hash.check()) {
|
||||
this.reload();
|
||||
}
|
||||
Remote.jsVersion((sResult, oData) => {
|
||||
|
|
@ -107,7 +106,7 @@ class AppUser extends AbstractApp {
|
|||
lastTime = currentTime;
|
||||
}, interval);
|
||||
|
||||
if (checkTimestamp()) {
|
||||
if (RainLoop.hash.check()) {
|
||||
this.reload();
|
||||
}
|
||||
|
||||
|
|
@ -919,7 +918,7 @@ class AppUser extends AbstractApp {
|
|||
|
||||
bootend() {
|
||||
if (window.progressJs) {
|
||||
progressJs.set(100).end();
|
||||
progressJs.end();
|
||||
}
|
||||
hideLoading();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue