diff options
author | Jose Antonio Marquez | 2012-07-24 15:48:44 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-07-24 15:48:44 -0700 |
commit | 52e3356f79e3c1ef7a86c1fabaaf1ebca200ad45 (patch) | |
tree | 0023f2299c1a4bb5adc9dc3d3818e31f42e72cc3 /index.html | |
parent | 21d74af1e9fc57cc25cea8aa7408beabf79ff2f3 (diff) | |
download | ninja-52e3356f79e3c1ef7a86c1fabaaf1ebca200ad45.tar.gz |
New: OS check on load
Performing OS check on load to redirect users to system requirements if their OS currently is not supported.
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"; |