4 ms·
Looking at the code you just posted it looks like this is what you did: // HAMLET HAMLET HAMLET function isValidBrowser() { var browser = BrowserDetect.bro
by arfrank 16y ago
Looking at the code you just posted it looks like this is what you did:
// HAMLET HAMLET HAMLET
function isValidBrowser() {
var browser = BrowserDetect.browser;
var version = BrowserDetect.version;
return (
(browser == 'Chrome' && version >= 6) ||
(browser == 'Firefox' && version >= 3.6)
);
}
- gmurphy 16y agoYep; I realize this is usually taken to be poor form, though I'm no idealist - I did it while the APIs I was using were in flux (I flipped through a few upload techniques), and focused on getting it working right in a few before expanding to the many.
- arfrank 16y agoMakes total sense. It looks great by the way.