mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Removed useJsNextBundle
This commit is contained in:
parent
90cec2171a
commit
95293aa585
2 changed files with 0 additions and 47 deletions
|
|
@ -12,41 +12,6 @@ window.__rlah_set = () => setHash();
|
|||
window.__rlah_clear = () => clearHash();
|
||||
window.__rlah_data = () => RL_APP_DATA_STORAGE;
|
||||
|
||||
const useJsNextBundle = (function() {
|
||||
// try {
|
||||
//
|
||||
// (function() {
|
||||
// eval(`
|
||||
// // let + const
|
||||
//const x = 5; let y = 4; var z = 4;
|
||||
//
|
||||
// // Arrow Function
|
||||
//const f = () => 'rainloop';
|
||||
//
|
||||
// // Default + Rest + Spread
|
||||
//const d = (test = 1, ...t) => 'rainloop';
|
||||
//d(...[1, 2, 3]);
|
||||
//
|
||||
//// Destructuring
|
||||
//let [a, b] = [1, 2];
|
||||
//({a, b} = {a: 1, b: 2});
|
||||
//
|
||||
//// Class
|
||||
//class Q1 { constructor() {} }
|
||||
//
|
||||
//// Class extends + super
|
||||
//class Q2 extends Q1 { constructor() { super() } }
|
||||
//
|
||||
//`);
|
||||
// }());
|
||||
//
|
||||
// return true;
|
||||
// }
|
||||
// catch (e) {}
|
||||
return false;
|
||||
})();
|
||||
/* eslint-enable */
|
||||
|
||||
/**
|
||||
* @param {string} styles
|
||||
* @returns {void}
|
||||
|
|
@ -202,7 +167,6 @@ function runApp() {
|
|||
appData.LangLink &&
|
||||
appData.StaticLibJsLink &&
|
||||
appData.StaticAppJsLink &&
|
||||
appData.StaticAppJsNextLink &&
|
||||
appData.StaticEditorJsLink
|
||||
) {
|
||||
const p = progressJs;
|
||||
|
|
@ -227,10 +191,6 @@ function runApp() {
|
|||
p.set(20);
|
||||
return window.Promise.all([jassl(appData.TemplatesLink), jassl(appData.LangLink)]);
|
||||
})
|
||||
.then(() => {
|
||||
p.set(30);
|
||||
return jassl(useJsNextBundle ? appData.StaticAppJsNextLink : appData.StaticAppJsLink);
|
||||
})
|
||||
.then(() => {
|
||||
p.set(50);
|
||||
return appData.PluginsLink ? jassl(appData.PluginsLink) : window.Promise.resolve();
|
||||
|
|
@ -287,12 +247,6 @@ window.__runBoot = function() {
|
|||
window.document.location.replace('./?/NoCookie');
|
||||
}
|
||||
|
||||
const root = window.document.documentElement;
|
||||
|
||||
if (useJsNextBundle) {
|
||||
root.className += ' js-next';
|
||||
}
|
||||
|
||||
if (includeLayout()) {
|
||||
includeAppScr(getRainloopBootData());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue