UNPKG

@phaserjs/phaser

Version:
9 lines (8 loc) 257 B
import { CONFIG_DEFAULTS } from "../const"; import { ConfigStore } from "../ConfigStore"; export function AddGlobalVar(game) { const globalVar = ConfigStore.get(CONFIG_DEFAULTS.GLOBAL_VAR); if (globalVar && window) { window[globalVar] = game; } }