diff options
author | Valerio Virgillito | 2012-07-24 16:24:10 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-07-24 16:24:10 -0700 |
commit | f14f381e0a785d37ae08b919b85c1d12fc117e48 (patch) | |
tree | 55e328f74097a373bdd3a034442af1fa6d1828a5 /index.html | |
parent | 095a9f26fe193aea759387b42d5a25c94ef423a8 (diff) | |
parent | 52e3356f79e3c1ef7a86c1fabaaf1ebca200ad45 (diff) | |
download | ninja-f14f381e0a785d37ae08b919b85c1d12fc117e48.tar.gz |
Merge branch 'UserDetection' of https://github.com/joseeight/ninja into v0.7.1
Diffstat (limited to 'index.html')
-rwxr-xr-x | index.html | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -166,6 +166,10 @@ POSSIBILITY OF SUCH DAMAGE. | |||
166 | 166 | ||
167 | <script type="text/javascript"> | 167 | <script type="text/javascript"> |
168 | window.onload = function() { | 168 | window.onload = function() { |
169 | //Check for OS support | ||
170 | if (navigator.appVersion.toLowerCase().indexOf("win") === -1 && navigator.appVersion.toLowerCase().indexOf("mac") === -1) { | ||
171 | window.location = "./os.html"; | ||
172 | } | ||
169 | // Check if we are running in Chrome | 173 | // Check if we are running in Chrome |
170 | if(navigator.userAgent.toLowerCase().indexOf("chrome") === -1) { | 174 | if(navigator.userAgent.toLowerCase().indexOf("chrome") === -1) { |
171 | window.location = "./redirect.html"; | 175 | window.location = "./redirect.html"; |