mirror of
https://gitlab.com/timvisee/send.git
synced 2024-11-10 21:22:35 +01:00
redirect ie to /unsupported
This commit is contained in:
parent
8164f3585e
commit
a42a54670b
@ -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}}
|
||||
window.dsn = '{{{dsn}}}';
|
||||
{{/if}}
|
||||
{{#if trackerId}}
|
||||
window.trackerId = '{{{trackerId}}}';
|
||||
{{/if}}
|
||||
const MAXFILESIZE = {{{maxFileSize}}};
|
||||
const EXPIRE_SECONDS = {{{expireSeconds}}};
|
||||
var MAXFILESIZE = {{{maxFileSize}}};
|
||||
var EXPIRE_SECONDS = {{{expireSeconds}}};
|
||||
|
Loading…
Reference in New Issue
Block a user