From: Ben Soares Date: Fri, 15 Dec 2023 13:06:52 +0000 (+0000) Subject: JAL-4059 Only run this once X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=831463516b5ae5c22a72a27194a57132ae73579e;p=jalview.git JAL-4059 Only run this once --- diff --git a/src/jalview/util/JalviewJSUtil.java b/src/jalview/util/JalviewJSUtil.java index 22f79a5..a14ebb5 100644 --- a/src/jalview/util/JalviewJSUtil.java +++ b/src/jalview/util/JalviewJSUtil.java @@ -186,8 +186,14 @@ public class JalviewJSUtil return j2sNamespace; } + private static boolean setArguments = false; + public static void getURLCommandArguments() { + if (setArguments) + { + return; + } // setting ArgParser.ignoreNonStringValues allows non-string args to be // set with, e.g., --wrap=hello @@ -319,6 +325,7 @@ public class JalviewJSUtil * * } */ + setArguments = true; } catch (Throwable t) { /**