JAL-3541 selectively merged build.gradle and gradle.properties
[jalview.git] / src / jalview / appletgui / EmbmenuFrame.java
index 7b489ea..8b2b279 100644 (file)
@@ -20,6 +20,8 @@
  */
 package jalview.appletgui;
 
+import jalview.util.Platform;
+
 import java.awt.BorderLayout;
 import java.awt.Color;
 import java.awt.FlowLayout;
@@ -96,7 +98,7 @@ public class EmbmenuFrame extends Frame
       return false;
     }
     // DEBUG Hint: can test embedded menus by inserting true here.
-    if (new jalview.util.Platform().isAMac())
+    if (Platform.isAMacAndNotJS())
     {
       // Build the embedded menu panel, allowing override with system font
       embeddedMenu = makeEmbeddedPopupMenu(topMenuBar, true, false);
@@ -274,7 +276,5 @@ public class EmbmenuFrame extends Frame
     destroyMenus();
     embeddedPopup = null;
     embeddedMenu = null;
-    // no close for Frame
-    // super.finalize();
   }
 }