j2sNative clean-up. Fixes problem with second try of sequence fetching
[jalview.git] / src / jalview / util / BrowserLauncher.java
index f47ca23..45b7551 100755 (executable)
@@ -236,7 +236,9 @@ public class BrowserLauncher
 
     loadedWithoutErrors = true;
 
+    if (!Platform.isJS())
     /**
+     * Java only
      * 
      * @j2sNative
      * 
@@ -334,7 +336,10 @@ public class BrowserLauncher
   private static boolean loadClasses()
   {
 
+    if (!Platform.isJS())
     /**
+     * Java only
+     * 
      * @j2sNative
      * 
      */
@@ -538,7 +543,10 @@ public class BrowserLauncher
    */
   private static Object locateBrowser()
   {
+    if (!Platform.isJS())
     /**
+     * Java only
+     * 
      * @j2sNative
      * 
      */
@@ -735,10 +743,12 @@ 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
      *