Skip to content

Commit

Permalink
Merge pull request #12754 from calixteman/event_sb_creation
Browse files Browse the repository at this point in the history
Dispatch an event on sandbox creation
  • Loading branch information
timvandermeij authored Dec 18, 2020
2 parents 142f131 + 4ae9064 commit f2378eb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1580,6 +1580,12 @@ const PDFViewerApplication = {
URL: this.url,
},
});

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

0 comments on commit f2378eb

Please sign in to comment.