From 949935d8464d9e188725f90202ac52ab21452302 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Tue, 1 Dec 2015 14:25:32 -0500 Subject: [PATCH] Check iD.detect().support instead of relying on conditional IE comment --- dist/index.html | 5 ++--- index.html | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dist/index.html b/dist/index.html index a00ac7b06..b3e7c19e3 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1,7 +1,6 @@ - iD @@ -36,8 +35,8 @@ a.src=document.location.protocol+"//dnn506yrbagrg.cloudfront.net/pages/scripts/0013/6714.js?"+Math.floor(new Date().getTime()/3600000); a.async=true;a.type="text/javascript";b.parentNode.insertBefore(a,b)}, 1); - if (typeof iD == 'undefined') { - document.getElementById('id-container').innerHTML = 'Sorry, Internet Explorer is not currently supported. Please use Potlatch 2 to edit the map.'; + if (typeof iD == 'undefined' || !iD.detect().support) { + document.getElementById('id-container').innerHTML = 'Sorry, your browser is not currently supported. Please use Potlatch 2 to edit the map.'; document.getElementById('id-container').className = 'unsupported'; } else { var id = iD() diff --git a/index.html b/index.html index 24410198f..42522a2bf 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,6 @@ - iD