Skip to content

Commit 2bc8048

Browse files
committed
fixes
- j2sApplet not recognizing static boolean j2sHeadless in subclass of class with that
1 parent 1debf49 commit 2bc8048

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/net.sf.j2s.java.core/srcjs/js/j2sApplet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2751,7 +2751,7 @@ if (ev.keyCode == 9 && ev.target["data-focuscomponent"]) {
27512751
//cl.$static$ && cl.$static$();
27522752
if (clazz.indexOf("_.") == 0)
27532753
J2S.setWindowVar(clazz.substring(2), cl);
2754-
applet.__Info.headless = (J2S._headless || isApp && !!cl.j2sHeadless);
2754+
applet.__Info.headless = (J2S._headless || isApp && (cl.$j2sHeadless || cl.j2sHeadless));
27552755
if (applet.__Info.headless) {
27562756
Clazz._isHeadless = "true";
27572757
System.out.println("j2sApplet running headlessly");

0 commit comments

Comments
 (0)