Created
November 13, 2013 15:50
-
-
Save sjorsrijsdam/7451315 to your computer and use it in GitHub Desktop.
Quick and dirty hack to monkey patch Mootools and stop IE11 from crapping itself.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add this to mootool core just before | |
// Browser[Browser.name] = true; | |
// Browser[Browser.name + parseInt(Browser.version, 10)] = true; | |
// Browser.Platform[Browser.Platform.name] = true; | |
if (ua.indexOf('trident/7.0') > -1) { | |
Browser.name = 'ie'; | |
Browser.version = '11'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment