Merge pull request #12754 from calixteman/event_sb_creation

Dispatch an event on sandbox creation
This commit is contained in:
Tim van der Meij 2020-12-18 21:09:35 +01:00 committed by GitHub
commit f2378eb715
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();