Merge branch 'alpha/origin_2022_JAL-3066_Jalview_212_slivka-integration' into spike...
[jalview.git] / src / jalview / util / BrowserLauncher.java
index f47ca23..8119daa 100755 (executable)
@@ -236,9 +236,11 @@ public class BrowserLauncher
 
     loadedWithoutErrors = true;
 
+    if (!Platform.isJS())
     /**
+     * Java only
      * 
-     * @j2sNative
+     * @j2sIgnore
      * 
      */
     {
@@ -334,8 +336,11 @@ public class BrowserLauncher
   private static boolean loadClasses()
   {
 
+    if (!Platform.isJS())
     /**
-     * @j2sNative
+     * Java only
+     * 
+     * @j2sIgnore
      * 
      */
     {
@@ -538,8 +543,11 @@ public class BrowserLauncher
    */
   private static Object locateBrowser()
   {
+    if (!Platform.isJS())
     /**
-     * @j2sNative
+     * Java only
+     * 
+     * @j2sIgnore
      * 
      */
     {
@@ -735,14 +743,16 @@ public class BrowserLauncher
   public static void openURL(String url) throws IOException
   {
 
-    if (Platform.openURL(url))
+    if (Platform.isJS())
     {
+      Platform.openURL(url);
       return;
     }
+    else
     /**
      * Java only
      * 
-     * @j2sNative
+     * @j2sIgnore
      */
     {