From: gmungoc Date: Mon, 25 Feb 2019 15:54:48 +0000 (+0000) Subject: JAL-3032 Jalview (as JS) parse query params to main arguments X-Git-Tag: Release_2_11_4_0~45^2~18^2~242 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9fb5170ef32b55453289169cae929894d0226767;p=jalview.git JAL-3032 Jalview (as JS) parse query params to main arguments --- diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index 29d48b2..e528dec 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -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