Created
March 27, 2016 09:32
-
-
Save CodeDotJS/921cd7e1054866c0ced5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 browser = function() { | |
| if (browser.prototype._cachedResult) | |
| return browser.prototype._cachedResult; | |
| var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0; | |
| return (browser.prototype._cachedResult = | |
| isSafari ? 'Safari' : | |
| ''); | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment