diff --git a/src/js/application.js b/src/js/application.js index 44207e4d..9827d674 100644 --- a/src/js/application.js +++ b/src/js/application.js @@ -69,6 +69,7 @@ export class Application { assert(!GLOBAL_APP, "Tried to construct application twice"); logger.log("Creating application, platform =", getPlatformName()); setGlobalApp(this); + MODS.app = this; this.unloaded = false; diff --git a/src/js/core/globals.js b/src/js/core/globals.js index 4e72dddf..15197880 100644 --- a/src/js/core/globals.js +++ b/src/js/core/globals.js @@ -2,8 +2,6 @@ import { Application } from "../application"; /* typehints:end */ -import { MODS } from "../mods/modloader"; - /** * Used for the bug reporter, and the click detector which both have no handles to this. * It would be nicer to have no globals, but this is the only one. I promise! @@ -16,5 +14,4 @@ export let GLOBAL_APP = null; export function setGlobalApp(app) { assert(!GLOBAL_APP, "Create application twice!"); GLOBAL_APP = app; - MODS.app = app; }