mirror of
https://gitlab.com/timvisee/send.git
synced 2024-11-13 06:32:34 +01:00
16 lines
436 B
Handlebars
16 lines
436 B
Handlebars
{{!-- 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}}
|
|
var MAXFILESIZE = {{{maxFileSize}}};
|
|
var EXPIRE_SECONDS = {{{expireSeconds}}};
|