Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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)
  );
}


Yep; 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.


Makes total sense. It looks great by the way.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: