JAL-3032 Jalview (as JS) parse query params to main arguments
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 25 Feb 2019 15:54:48 +0000 (15:54 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 25 Feb 2019 15:54:48 +0000 (15:54 +0000)
src/jalview/bin/Jalview.java

index 29d48b2..e528dec 100755 (executable)
@@ -90,8 +90,17 @@ import groovy.util.GroovyScriptEngine;
  */
 public class Jalview
 {
-
-  // BH 6/19/2018 starting to work on JS version - just discovering issues
+       /**
+        * @j2sNative
+        * 
+        *  // set space-delimited query parameters as arguments to Jalview main
+        *      hr = decodeURI(document.location.href);
+        *  pos = hr.indexOf("?");
+        *  if (pos > 0)
+        *  {
+        *     thisApplet.__Info.args = hr.substring(pos+1).split(" ");
+        *  }
+        */
 
   /*
    * singleton instance of this class