mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-18 11:52:11 +01:00
Dev: Disable syntax highlighting for IE8
This commit is contained in:
parent
aec81fd557
commit
ef7b2e13ec
@ -1 +1 @@
|
||||
48c1c8f45aa6fc3b32f907a3b1e638f5b303b965
|
||||
4d9ea53371b084c1960e003a2f26d5d564879ad2
|
||||
|
4
examples/resources/syntax/shCore.js
vendored
4
examples/resources/syntax/shCore.js
vendored
@ -303,10 +303,10 @@ var sh = {
|
||||
*/
|
||||
highlight: function(globalParams, element)
|
||||
{
|
||||
// Don't run the syntax highlighter on IE6/7 as it absolutely kills
|
||||
// Don't run the syntax highlighter on IE6/7/8 as it absolutely kills
|
||||
// performance
|
||||
var userAgent = navigator.appVersion;
|
||||
if (userAgent.indexOf("MSIE 7.") !== -1 || userAgent.indexOf("MSIE 6.") !== -1) {
|
||||
if (userAgent.indexOf("MSIE 8.") !== -1 || userAgent.indexOf("MSIE 7.") !== -1 || userAgent.indexOf("MSIE 6.") !== -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user