mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 15:49:06 +01:00
remove (unnecessary) double egw.min.js import
This commit is contained in:
parent
ff92db4e33
commit
edacfc12cb
@ -207,15 +207,9 @@ window.app = {classes: {}};
|
||||
}));
|
||||
}
|
||||
|
||||
const egw_modules = [
|
||||
// TODO: Dev mode should remove .min or remap it with importmap
|
||||
'egw.min'
|
||||
];
|
||||
// make our promise global, as legacy code calls egw_LAB.wait which we assign to egw_ready.then
|
||||
window.egw_LAB = window.egw_ready =
|
||||
legacy_js_import(include.filter((src) => src.match(legacy_js_regexp) !== null), window.egw_webserverUrl)
|
||||
.then(Promise.all(egw_modules.map(mod => import(window.egw_webserverUrl+'/api/js/jsapi/'+mod+'.js')
|
||||
.catch((err) => {console.error(rel_src+": "+err.message)}))))
|
||||
.then(() => Promise.all(include.filter((src) => src.match(legacy_js_regexp) === null) //.reverse()
|
||||
.map(rel_src => import(window.egw_webserverUrl+'/'+rel_src)
|
||||
.catch((err) => {window.setTimeout(() => {throw err;},0)})
|
||||
|
@ -14,7 +14,7 @@
|
||||
egw_core;
|
||||
egw_debug;
|
||||
*/
|
||||
import './egw_core.js';
|
||||
import './egw.js';
|
||||
import './egw_json.js'; // for egw.registerJSONPlugin
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user