Skip to content

Commit

Permalink
fix arg parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
jlucidar committed Jun 2, 2016
1 parent 7a2faa8 commit ebc056d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,10 @@ <h2>Settings</h2>
gui.App.on('open', function(cmdline) {
var args = cmdline.split(" ").slice(1);
if (args[0]==="."){ // avoid bug while running from source.
args.slice(1);
args.shift();
}
if(args[0]===undefined){
gui.Window.get().focus();
return;
}
global.cmd_line_args = parse_args(args);
Expand Down

0 comments on commit ebc056d

Please sign in to comment.