diff --git a/src/container.ts b/src/container.ts index f91efa2f..4f734d5c 100644 --- a/src/container.ts +++ b/src/container.ts @@ -261,8 +261,8 @@ export abstract class WebContainerBase extends ContainerBase { if (this.globalWindow) { const open = this.globalWindow.open; - this.globalWindow.open = (url?: string, target?: string, features?: string, replace?: boolean) => { - return this.onOpen(open, url, target, features, replace); + this.globalWindow.open = (...args: any[]) => { + return this.onOpen(open, ...args); }; } }