You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
467 B
18 lines
467 B
4 years ago
|
/* typehints:start */
|
||
|
import { Application } from "../application";
|
||
|
/* typehints:end */
|
||
|
|
||
|
/**
|
||
|
* 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!
|
||
|
* @type {Application} */
|
||
|
export let GLOBAL_APP = null;
|
||
|
|
||
|
/**
|
||
|
* @param {Application} app
|
||
|
*/
|
||
|
export function setGlobalApp(app) {
|
||
|
assert(!GLOBAL_APP, "Create application twice!");
|
||
|
GLOBAL_APP = app;
|
||
|
}
|