From a9292e59b79a666dc80b4fe4ff6fff2ecc0ccf7e Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 5 Nov 2019 17:20:59 +0000 Subject: [PATCH] JAL-3210 JAL-3130 skip Taskbar in JalviewJS --- src/jalview/bin/Jalview.java | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index 7701229..71902c0 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -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); -- 1.7.10.2