Start new NW.js windows in own renderer process
This commit is contained in:
1 file changed
+2
-1
@@ -217,7 +217,8 @@ class Packager extends EventTarget {
|
||||
zip.file(dataPrefix + 'package.json', JSON.stringify(manifest, null, 4));
|
||||
zip.file(dataPrefix + 'main.js', `
|
||||
const start = () => nw.Window.open('index.html', {
|
||||
position: "center"
|
||||
position: "center",
|
||||
new_instance: true
|
||||
});
|
||||
nw.App.on('open', start);
|
||||
start();`);
|
||||
|
||||
Reference in new issue
Block a user