From 831463516b5ae5c22a72a27194a57132ae73579e Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Fri, 15 Dec 2023 13:06:52 +0000 Subject: [PATCH] JAL-4059 Only run this once --- src/jalview/util/JalviewJSUtil.java | 7 +++++++ 1 file changed, 7 insertions(+) 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) { /** -- 1.7.10.2