drop.chapril.org-firefoxsend/views/jsconfig.handlebars

16 lines
436 B
Handlebars
Raw Normal View History

2017-07-29 01:13:45 +02:00
{{!-- 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}}
2017-07-29 01:13:45 +02:00
var MAXFILESIZE = {{{maxFileSize}}};
var EXPIRE_SECONDS = {{{expireSeconds}}};