Hacker News new | ask | show | jobs
by amyjess 4081 days ago
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.