Fix some nasty bug
This commit is contained in:
@@ -44,6 +44,7 @@ class IFrameWrapper implements WorkerLike {
|
||||
}
|
||||
|
||||
terminate() {
|
||||
console.log("Terminating iframe sandbox");
|
||||
window.removeEventListener("message", this.messageListener);
|
||||
return this.iframe.remove();
|
||||
}
|
||||
|
||||
@@ -87,6 +87,7 @@ export class System<HookT> extends EventEmitter<SystemEvents<HookT>> {
|
||||
sandboxFactory: SandboxFactory<HookT>
|
||||
): Promise<Plug<HookT>> {
|
||||
if (this.plugs.has(name)) {
|
||||
console.log("Unloading", name);
|
||||
await this.unload(name);
|
||||
}
|
||||
// Validate
|
||||
|
||||
Reference in New Issue
Block a user