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

In one of those examples:

> if (osName.indexOf("9") != -1) {

Jesus Hermann Christ. It's not just looking for "Windows 9", it's looking for a "9" anywhere in the version string. Yes, it's under an if clause looking for "Windows" also in the version string, so it won't trigger on "Plan 9" or something, but still it'll get triggered by something like Windows 19.





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

Search: