Skip to content

Commit

Permalink
Pass all arguments provided to window.open shim (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
bingenito authored May 17, 2018
1 parent ffc4f4e commit 4f56dae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
}
}
Expand Down

0 comments on commit 4f56dae

Please sign in to comment.