2020-07-13 09:29:16 +00:00
|
|
|
import "core-js/stable";
|
|
|
|
import "./polifill";
|
|
|
|
|
|
|
|
import * as loader from "./loader/loader";
|
2020-07-20 17:08:13 +00:00
|
|
|
import {ApplicationLoader} from "./loader/loader";
|
|
|
|
import {getUrlParameter} from "./loader/utils";
|
|
|
|
|
2020-07-13 09:29:16 +00:00
|
|
|
window["loader"] = loader;
|
|
|
|
/* let the loader register himself at the window first */
|
|
|
|
|
2020-07-20 17:08:13 +00:00
|
|
|
const target = getUrlParameter("loader-target") || "app";
|
|
|
|
console.error("Loading app with loader \"%s\"", target);
|
2020-07-13 09:29:16 +00:00
|
|
|
|
2020-07-20 17:08:13 +00:00
|
|
|
let appLoader: ApplicationLoader;
|
|
|
|
if(target === "empty") {
|
|
|
|
appLoader = new (require("./targets/empty").default);
|
|
|
|
} else if(target === "manifest") {
|
|
|
|
appLoader = new (require("./targets/maifest-target").default);
|
|
|
|
} else {
|
|
|
|
appLoader = new (require("./targets/app").default);
|
|
|
|
}
|
|
|
|
setTimeout(() => appLoader.execute(), 0);
|
2020-04-01 19:47:33 +00:00
|
|
|
|
2020-04-18 17:37:30 +00:00
|
|
|
export {};
|
|
|
|
|
|
|
|
//window.__REACT_DEVTOOLS_GLOBAL_HOOK__.inject = function () {};
|