JAL-3210 JAL-3130 skip Taskbar in JalviewJS
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 5 Nov 2019 17:20:59 +0000 (17:20 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 5 Nov 2019 17:20:59 +0000 (17:20 +0000)
src/jalview/bin/Jalview.java

index 7701229..71902c0 100755 (executable)
@@ -415,17 +415,15 @@ public class Jalview
       desktop = new Desktop();
       desktop.setInBatchMode(true); // indicate we are starting up
 
-      try
-      {
-        JalviewTaskbar.setTaskbar(this);
-      } catch (Exception e)
-      {
-        System.out.println("Cannot set Taskbar");
-        // e.printStackTrace();
-      } catch (Throwable t)
+      if (!Platform.isJS())
       {
-        System.out.println("Cannot set Taskbar");
-        // t.printStackTrace();
+        try
+        {
+          JalviewTaskbar.setTaskbar(this);
+        } catch (Throwable t)
+        {
+          System.out.println("Error setting Taskbar: " + t.getMessage());
+        }
       }
 
       desktop.setVisible(true);