We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 76fdfef + 6a9c781 commit c6c371bCopy full SHA for c6c371b
js/rpg_core/Utils.js
@@ -39,7 +39,16 @@ Utils.RPGMAKER_ENGINE = "community-1.2c";
39
* @return {Boolean} True if the option is in the query string
40
*/
41
Utils.isOptionValid = function(name) {
42
- return location.search.slice(1).split('&').contains(name);
+ if (location.search.slice(1).split('&').contains(name)) {
43
+ return true;
44
+ }
45
+ if (typeof nw !== "undefined" &&
46
+ nw.App.argv.length > 0 &&
47
+ nw.App.argv[0].split('&').contains(name)
48
+ ) {
49
50
51
+ return false;
52
};
53
54
/**
0 commit comments