aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorValerio Virgillito2012-01-30 23:08:42 -0800
committerNivesh Rajbhandari2012-01-31 10:10:16 -0800
commit03242bec2ac79613472960673a87da86f5498431 (patch)
treed68052f896924a1b5a7b6b3051e26349a4d5b620 /index.html
parent43d53af9cade33cff20601dfbce8a16d7212fe20 (diff)
downloadninja-03242bec2ac79613472960673a87da86f5498431.tar.gz
Adding browser check for Chrome and redirect page.
Adding a check for Google Chrome browser and a redirect page to download and install Chrome. Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'index.html')
-rw-r--r--index.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.html b/index.html
index 5fa4790c..f3018823 100644
--- a/index.html
+++ b/index.html
@@ -168,6 +168,10 @@
168 168
169 <script type="text/javascript"> 169 <script type="text/javascript">
170 window.onload = function() { 170 window.onload = function() {
171 // Check if we are running in Chrome
172 if(navigator.userAgent.toLowerCase().indexOf("chrome") === -1) {
173 window.location = "./redirect.html";
174 }
171 // Load the version json 175 // Load the version json
172 var req = new XMLHttpRequest(); 176 var req = new XMLHttpRequest();
173 req.open("GET", "versions.json"); 177 req.open("GET", "versions.json");