Created
February 4, 2015 19:41
-
-
Save oriSomething/f2c142352599f22c3951 to your computer and use it in GitHub Desktop.
Detect old browsers (IE 8-, Android 2.x). The easy way
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
var isBrowserOld = ! Function.prototype.bind; | |
// Can also add an CSS class | |
document.documentElement.className += ' old-browser'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment