Skip to content

Commit 95c00da

Browse files
pkradpvc
authored andcommitted
for #1137: disable CHTMLpreview.js on IE<8
1 parent b9e3761 commit 95c00da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

unpacked/extensions/CHTML-preview.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* limitations under the License.
2727
*/
2828

29-
(function (HUB,HTML) {
29+
(function (HUB,HTML,BROWSER) {
3030

3131
var SETTINGS = HUB.config.menuSettings;
3232

@@ -42,7 +42,7 @@
4242
color: "inherit!important",
4343
updateTime: 30, updateDelay: 6,
4444
messageStyle: "none",
45-
disabled: false
45+
disabled: ((BROWSER.isMSIE && BROWSER.version < 8) ? true : false)
4646
}),
4747

4848
//
@@ -133,7 +133,7 @@
133133

134134
HUB.Startup.signal.Post("CHTML-preview Ready");
135135

136-
})(MathJax.Hub,MathJax.HTML);
136+
})(MathJax.Hub,MathJax.HTML,MathJax.Hub.Browser);
137137

138138
MathJax.Ajax.loadComplete("[MathJax]/extensions/CHTML-preview.js");
139139

0 commit comments

Comments
 (0)