Set window._ground to the most recent Ground instance, in the browser

This commit is contained in:
Tony Garnock-Jones 2018-11-03 22:18:36 +00:00
parent ceff62ff92
commit 8e7cf160d6
1 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,9 @@ function Ground(bootProc) {
this.dataspace = new Dataspace(this, bootProc);
this.stopHandlers = [];
this.backgroundTaskCount = 0;
if (typeof window !== 'undefined') {
window._ground = this;
}
}
Ground._resolved = Promise.resolve();