From ad4b515bfdf753da209c89309c0536e49f6d4d6d Mon Sep 17 00:00:00 2001 From: hansonr Date: Mon, 8 Apr 2019 23:39:28 -0500 Subject: [PATCH] better comment regarding setting recognized ajax-enabled sites --- src/jalview/util/Platform.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/jalview/util/Platform.java b/src/jalview/util/Platform.java index fb786dc..3297104 100644 --- a/src/jalview/util/Platform.java +++ b/src/jalview/util/Platform.java @@ -571,15 +571,18 @@ public class Platform public static void addJ2SDirectDatabaseCall(String domain) { - System.out.println( - "Platform adding no-access-control-allow-origin domain " + if (isJS()) + { + System.out.println( + "Platform adding known access-control-allow-origin * for domain " + domain); + /** + * @j2sNative + * + * J2S.addDirectDatabaseCall(domain); + */ + } - /** - * @j2sNative - * - * J2S.addDirectDatabaseCall(domain); - */ } public static void getURLCommandArguments() -- 1.7.10.2