diff options
author | Valerio Virgillito | 2012-07-24 16:24:18 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-07-24 16:24:18 -0700 |
commit | 3212da3856b710b453e272b6f62f4152ec6e97dd (patch) | |
tree | 3f031a6726de7242e4843911c246c76f6338f85d /index.html | |
parent | cf92eba275d544170942351f14eebaf4cd1bfb05 (diff) | |
parent | 52e3356f79e3c1ef7a86c1fabaaf1ebca200ad45 (diff) | |
download | ninja-3212da3856b710b453e272b6f62f4152ec6e97dd.tar.gz |
Merge branch 'UserDetection' of https://github.com/joseeight/ninja
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"; |