Skip to content

Commit 150ccb3

Browse files
committed
window.open should show the window by default even though the show option from package.json. Fix nwjs#491.
1 parent f0d8923 commit 150ccb3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/nw_shell.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,8 @@ void Shell::WebContentsCreated(WebContents* source_contents,
403403
manifest->SetInteger(switches::kmX, features.x);
404404
if (features.ySet)
405405
manifest->SetInteger(switches::kmY, features.y);
406+
// window.open should show the window by default.
407+
manifest->SetBoolean(switches::kmShow, true);
406408

407409
new Shell(new_contents, manifest.get());
408410
}

0 commit comments

Comments
 (0)