From 58a75dde6f689e8fef615809c2f8fd0646272d0e Mon Sep 17 00:00:00 2001 From: bingenito Date: Thu, 17 May 2018 10:17:39 -0400 Subject: [PATCH] Pass all arguments provided to window.open shim --- src/container.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }; } }