Skip to content

Commit 488c4af

Browse files
author
zhourenjian
committed
Support Firefox's font-size changed events in Shell's title and menu bar
1 parent e4250eb commit 488c4af

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sources/net.sf.j2s.java.core/src/java/lang/ClassLoaderProgressMonitor.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ clpm.DEFAULT_OPACITY = 75;
6666
this.fadeOutTimer = null;
6767
}
6868
this.fadeAlpha = alpha;
69-
if (navigator.userAgent.toLowerCase ().indexOf ("msie") != -1) {
69+
var ua = navigator.userAgent.toLowerCase ();
70+
if (ua.indexOf ("msie") != -1 && ua.indexOf ("opera") == -1) {
7071
this.monitorEl.style.filter = "Alpha(Opacity=" + alpha + ")";
7172
} else {
7273
this.monitorEl.style.opacity = alpha / 100.0;
@@ -155,4 +156,8 @@ if (window["ClazzLoader"] != null) {
155156
ClazzLoader.globalLoaded = function (file) {
156157
ClassLoaderProgressMonitor.showStatus ("Application loaded.", true);
157158
};
159+
var ua = navigator.userAgent.toLowerCase ();
160+
if (ua.indexOf ("msie") != -1 && ua.indexOf ("opera") == -1) {
161+
ClazzLoader.setLoadingMode ("script", 5);
162+
}
158163
}

0 commit comments

Comments
 (0)