Don't use webpack on boot.js

This commit is contained in:
djmaze 2020-09-03 16:34:23 +02:00
parent b837013cfb
commit fcaa2fd6de
11 changed files with 167 additions and 388 deletions

View file

@ -98,8 +98,8 @@ class AbstractApp extends AbstractBoot {
}
clearClientSideToken() {
if (window.__rlah_clear) {
__rlah_clear();
if (RainLoop.hash.clear) {
RainLoop.hash.clear();
}
}
@ -107,8 +107,8 @@ class AbstractApp extends AbstractBoot {
* @param {string} token
*/
setClientSideToken(token) {
if (window.__rlah_set) {
__rlah_set(token);
if (RainLoop.hash.set) {
RainLoop.hash.set(token);
Settings.settingsSet('AuthAccountHash', token);
populateAuthSuffix();

View file

@ -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();
}