Skip to content

Commit 8d40a59

Browse files
committed
newwin: new_instance option
1 parent fcf9aec commit 8d40a59

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/resources/api_nw_newwin.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,8 +660,10 @@ nw_binding.registerCustomHook(function(bindingsAPI) {
660660
// options.alphaEnabled = true;
661661
// if (params.kiosk === true)
662662
// options.kiosk = true;
663-
// if (params.new_instance === true)
664-
// options.new_instance = true;
663+
if (params.new_instance === true) {
664+
options.new_instance = true;
665+
options.setSelfAsOpener = false;
666+
}
665667
// if (params.position)
666668
// options.position = params.position;
667669
// if (params.title)

0 commit comments

Comments
 (0)