From: gmungoc Date: Mon, 25 Feb 2019 15:24:57 +0000 (+0000) Subject: JAL-3032 JalviewJS2 converts url query parameters to 'applet' args X-Git-Tag: Release_2_11_4_0~45^2~18^2~243 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=67dd34ce6c0b2e9954ac8277910f35674bcd3497;p=jalview.git JAL-3032 JalviewJS2 converts url query parameters to 'applet' args --- diff --git a/src/jalview/bin/JalviewJS2.java b/src/jalview/bin/JalviewJS2.java index eff5334..0a02a8d 100644 --- a/src/jalview/bin/JalviewJS2.java +++ b/src/jalview/bin/JalviewJS2.java @@ -25,20 +25,23 @@ public class JalviewJS2 * "examples/exampleFeatures.txt"]; */ - - /** - * @j2sNative - * - * thisApplet.__Info.args = - * ["open","examples/jaxbtest.jvx"]; - */ - + /** + * @j2sNative + * + * hr = decodeURI(document.location.href); + * pos = hr.indexOf("?"); + * // set space-delimited query parameters as arguments to Jalview main + * if (pos > 0) + * { + * thisApplet.__Info.args = hr.substring(pos+1).split(" "); + * } + */ } public static void main(String[] args) throws Exception { Jalview.main(args); - showFocusTimer(); + //showFocusTimer(); } protected static int focusTime = 0;