X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Futil%2FBrowserLauncher.java;h=8119daa8edbefac5d9b24f6437d378ef00d7e06a;hb=cfe83544e2e75debc9ae23b8b15072f3cc632f88;hp=a55a65ccadc09138ae66689471a115c3f65c7472;hpb=69241a5225dc2abcca0b1ccdd2a17769d5b0f5bb;p=jalview.git diff --git a/src/jalview/util/BrowserLauncher.java b/src/jalview/util/BrowserLauncher.java index a55a65c..8119daa 100755 --- a/src/jalview/util/BrowserLauncher.java +++ b/src/jalview/util/BrowserLauncher.java @@ -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,17 @@ public class BrowserLauncher public static void openURL(String url) throws IOException { + if (Platform.isJS()) + { + Platform.openURL(url); + return; + } + else /** - * @j2sNative - * - * window.open(url); - * + * Java only * + * @j2sIgnore */ - { if (!loadedWithoutErrors)