better comment regarding setting recognized ajax-enabled sites
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Tue, 9 Apr 2019 04:39:28 +0000 (23:39 -0500)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Tue, 9 Apr 2019 04:39:28 +0000 (23:39 -0500)
src/jalview/util/Platform.java

index fb786dc..3297104 100644 (file)
@@ -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()