consolidation of Platform isJS calls
[jalview.git] / src / jalview / util / BrowserLauncher.java
index a55a65c..f47ca23 100755 (executable)
@@ -735,14 +735,15 @@ public class BrowserLauncher
   public static void openURL(String url) throws IOException
   {
 
+    if (Platform.openURL(url))
+    {
+      return;
+    }
     /**
-     * @j2sNative
-     * 
-     *            window.open(url);
-     * 
+     * Java only
      * 
+     * @j2sNative
      */
-
     {
 
     if (!loadedWithoutErrors)