diff --git a/app/assets/index_old_browser.html b/app/assets/index_old_browser.html
index d4fff3180..4fa054128 100644
--- a/app/assets/index_old_browser.html
+++ b/app/assets/index_old_browser.html
@@ -1,96 +1,33 @@
-
-
-
-
-
-
-
-
+
+
CodeCombat requires a modern browser to play
+
+ - Chrome 20+
+ - Firefox 21+
+ - Safari 6+
+ - Internet Explorer 11+ or Edge
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Learn to Code JavaScript by Playing a Game
-
-
-
-
-
-
-
-
CodeCombat requires a modern browser to play:
-
- - Chrome 20+
- - Firefox 21+
- - Safari 6+
- - Internet Explorer 10+
-
-
It looks like you have an older browser or a mobile device, so it won't work. Sorry!
-
- or
-
-
-
-
-
-
-
-
+
It looks like you have an older browser or a mobile device, so it won't work. Sorry!
+
+
-
-
-
diff --git a/app/assets/main.html b/app/assets/main.html
index bda9da542..673ff3f78 100644
--- a/app/assets/main.html
+++ b/app/assets/main.html
@@ -81,12 +81,11 @@
onLoad = function() {
try {
- // IE8 warning
+ // IE10 warning
var htmlElement = document.querySelector("html");
if (htmlElement) {
- var classAttribute = htmlElement.getAttribute('class');
- if (classAttribute && classAttribute.indexOf('lt-ie9') >= 0) {
- alert("CodeCombat does not run in Internet Explorer 8 or older. Sorry!");
+ if ($.browser.msie && $.browser.versionNumber < 11) {
+ alert("CodeCombat does not run in Internet Explorer 10 or older. Sorry!");
}
}
diff --git a/server_setup.coffee b/server_setup.coffee
index deff5bb84..ec9a2be07 100644
--- a/server_setup.coffee
+++ b/server_setup.coffee
@@ -90,7 +90,6 @@ setupExpressMiddleware = (app) ->
app.use(express.static(path.join(__dirname, 'public'), maxAge: 0)) # CloudFlare overrides maxAge, and we don't want local development caching.
setupProxyMiddleware app # TODO: Flatten setup into one function. This doesn't fit its function name.
- app.use(useragent.express())
app.use(express.favicon())
app.use(express.cookieParser())
@@ -152,9 +151,10 @@ setupMiddlewareToSendOldBrowserWarningWhenPlayersViewLevelDirectly = (app) ->
return true if b is 'Chrome' and v < 17
return true if b is 'Safari' and v < 6
return true if b is 'Firefox' and v < 21
- return true if b is 'IE' and v < 10
+ return true if b is 'IE' and v < 11
false
+ app.use('/play/', useragent.express())
app.use '/play/', (req, res, next) ->
return next() if req.query['try-old-browser-anyway'] or not isOldBrowser req
res.sendfile(path.join(__dirname, 'public', 'index_old_browser.html'))