Start new NW.js windows in own renderer process

This commit is contained in:
Thomas Weber committed 2021-06-24 22:44:47 -05:00
1 parent 9a793b3288
commit f99e163faa
1 file changed
+2 -1
+2 -1
View File
@@ -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();`);