From 9fb5170ef32b55453289169cae929894d0226767 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Mon, 25 Feb 2019 15:54:48 +0000 Subject: [PATCH] JAL-3032 Jalview (as JS) parse query params to main arguments --- src/jalview/bin/Jalview.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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 -- 1.7.10.2