4 ms·
Interestingly, it fails for me because of Mac, not because of Chrome: this.correctBrowser = (this.nav || this.ie); this.correctVersion = (this.nav5up || this.
by kbutler 7y ago
Interestingly, it fails for me because of Mac, not because of Chrome:
this.correctBrowser = (this.nav || this.ie);
this.correctVersion = (this.nav5up || this.ie5up);
this.correctOS = (this.linux || this.win32);
this.supported = (this.correctBrowser && this.correctVersion && this.correctOS);
A case of platform detection, instead of feature detection, and an illustration of how platform detection fails in future-proofing your code.