main.js
authorChris <chris@roojs.com>
Tue, 17 Sep 2013 09:43:26 +0000 (17:43 +0800)
committerChris <chris@roojs.com>
Tue, 17 Sep 2013 09:43:26 +0000 (17:43 +0800)
main.js

diff --git a/main.js b/main.js
index 4fad4ca..a21784d 100755 (executable)
--- a/main.js
+++ b/main.js
@@ -24,6 +24,9 @@ button.signal.clicked.connect(Gtk.main_quit);
 /* Add button to window */
 
 /* create the args */
+var args = Array.prototype.slice.call(typeof(Seed) != 'undefined' ? Seed.argv : ARGV);
+args.shift(); //seed
+args.shift(); // main.js
 
 print(Seed.argv[2]);
 //window.add(button);