aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-07-24 15:48:44 -0700
committerJose Antonio Marquez2012-07-24 15:48:44 -0700
commit52e3356f79e3c1ef7a86c1fabaaf1ebca200ad45 (patch)
tree0023f2299c1a4bb5adc9dc3d3818e31f42e72cc3 /index.html
parent21d74af1e9fc57cc25cea8aa7408beabf79ff2f3 (diff)
downloadninja-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-xindex.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.html b/index.html
index 8c2de1f6..a6e1f809 100755
--- a/index.html
+++ b/index.html
@@ -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";