JAL-3379 Javascript applet.app
[jalview.git] / src / jalview / bin / Jalview.java
index a67c5fd..6f902af 100755 (executable)
@@ -279,7 +279,11 @@ public class Jalview implements ApplicationSingletonI, JalviewJSApi
   {
 
     boolean isJS = Platform.isJS();
-    if (!isJS)
+    if (isJS)
+    {
+      Platform.setAppClass(this);
+    }
+    else
     {
       System.setSecurityManager(null);
     }
@@ -2018,3 +2022,4 @@ public class Jalview implements ApplicationSingletonI, JalviewJSApi
 
 
 }
+