additional test - http://www.koders.com/java/fid4C9593FE80CE8AA81158AF712B50C7A689488...
[jalview.git] / src / jalview / bin / JalviewLite.java
index 5341a4b..c972025 100755 (executable)
@@ -842,7 +842,13 @@ public class JalviewLite extends Applet
     // remove any handlers that might be hanging around from an earlier instance
     try
     {
-       JSObject scriptObject = JSObject.getWindow(this);       
+      if (getAppletContext() instanceof sun.plugin.javascript.JSContext) {
+        if (debug)
+        {
+          System.err.println("Applet context implements JSContext - should have callback support!");
+        }
+      }
+       JSObject scriptObject = JSObject.getWindow(this);  
     } catch (Exception ex)
     {
       System.err