fix(ie11): redirect to recommended browsers page (#3853)

This commit is contained in:
virtuacoplenny 2019-02-05 08:26:27 -08:00 committed by GitHub
parent c34fee4305
commit 2b56822a41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,12 @@
<link rel="stylesheet" href="css/all.css"> <link rel="stylesheet" href="css/all.css">
<script> <script>
// IE11 and earlier can be identified via their user agent and be
// redirected to a page that is known to have no newer js syntax.
if (window.navigator.userAgent.match(/(MSIE|Trident)/)) {
window.location.href = "static/recommendedBrowsers.html";
}
window.indexLoadedTime = window.performance.now(); window.indexLoadedTime = window.performance.now();
console.log("(TIME) index.html loaded:\t", indexLoadedTime); console.log("(TIME) index.html loaded:\t", indexLoadedTime);
// XXX the code below listeners for errors and displays an error message // XXX the code below listeners for errors and displays an error message