Skip to content
Snippets Groups Projects
Commit a88d4a48 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix #380: regression: the arg parser in the nwjs "open" event callback got broken

This was a consequence of implementing the "-unique" flag. It
required adding a "data-dir" flag to the command line which
through off the _very_ brittle arg parser in the "open" event
callback.
parent ac235f2b
No related branches found
No related tags found
1 merge request!127fix #380: regression: the arg parser in the nwjs "open" event callback got broken
Pipeline #
...@@ -313,7 +313,7 @@ function add_events() { ...@@ -313,7 +313,7 @@ function add_events() {
argv_string = argv_string.slice(0, -pd_engine_id.length).trim(); argv_string = argv_string.slice(0, -pd_engine_id.length).trim();
// strip off the gui dir // strip off the gui dir
argv_string = argv_string.slice(0, argv_string = argv_string.slice(0,
-nw.App.argv[3].length).trim(); -nw.App.argv[4].length).trim();
if (process.platform === "win32") { if (process.platform === "win32") {
// windows quotes this string, so let's remove the two // windows quotes this string, so let's remove the two
// quotation marks // quotation marks
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment