Skip to content

Commit

Permalink
Dispatch an event on sandbox creation
Browse files Browse the repository at this point in the history
 * the goal is to be able to know when the sandbox is ready for mochitest in m-c
  • Loading branch information
calixteman committed Dec 18, 2020
1 parent c366390 commit 2d7108a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1580,6 +1580,10 @@ const PDFViewerApplication = {
URL: this.url,
},
});

this.eventBus.dispatch("sandboxcreated", {
source: this,
});
} catch (error) {
console.error(error);
this._destroyScriptingInstance();
Expand Down

0 comments on commit 2d7108a

Please sign in to comment.