Set window._ground to the most recent Ground instance, in the browser
This commit is contained in:
parent
ceff62ff92
commit
8e7cf160d6
|
@ -10,6 +10,9 @@ function Ground(bootProc) {
|
||||||
this.dataspace = new Dataspace(this, bootProc);
|
this.dataspace = new Dataspace(this, bootProc);
|
||||||
this.stopHandlers = [];
|
this.stopHandlers = [];
|
||||||
this.backgroundTaskCount = 0;
|
this.backgroundTaskCount = 0;
|
||||||
|
if (typeof window !== 'undefined') {
|
||||||
|
window._ground = this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Ground._resolved = Promise.resolve();
|
Ground._resolved = Promise.resolve();
|
||||||
|
|
Loading…
Reference in New Issue