3 ms·
How are you determining which browsers are compatible with it? It seems like the best way might be to use modernizr: http://www.modernizr.com/ http://www.modern
by arfrank 16y ago
How are you determining which browsers are compatible with it? It seems like the best way might be to use modernizr: http://www.modernizr.com/ http://www.modernizr.com/. Or are you using more than just the html5 drag and drop API?
- arfrank 16y agoLooking 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.