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);