redirect ie to /unsupported

This commit is contained in:
Danny Coates 2017-07-28 16:13:45 -07:00
parent 8164f3585e
commit a42a54670b
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB

View file

@ -1,8 +1,15 @@
{{!-- This file should be es5 only --}}
var isIE = /trident\/7\.|msie/i.test(navigator.userAgent);
var isUnsupportedPage = /\/unsupported/.test(location.pathname);
if (isIE && !isUnsupportedPage) {
window.location.replace('/unsupported/ie');
}
{{#if dsn}} {{#if dsn}}
window.dsn = '{{{dsn}}}'; window.dsn = '{{{dsn}}}';
{{/if}} {{/if}}
{{#if trackerId}} {{#if trackerId}}
window.trackerId = '{{{trackerId}}}'; window.trackerId = '{{{trackerId}}}';
{{/if}} {{/if}}
const MAXFILESIZE = {{{maxFileSize}}}; var MAXFILESIZE = {{{maxFileSize}}};
const EXPIRE_SECONDS = {{{expireSeconds}}}; var EXPIRE_SECONDS = {{{expireSeconds}}};