redirect ie to /unsupported
This commit is contained in:
parent
8164f3585e
commit
a42a54670b
1 changed files with 9 additions and 2 deletions
|
@ -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}}};
|
||||||
|
|
Loading…
Reference in a new issue