mirror of
https://gitlab.com/timvisee/send.git
synced 2024-11-14 07:02:30 +01:00
29 lines
770 B
Handlebars
29 lines
770 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 sentryId}}
|
|
var RAVEN_CONFIG = {
|
|
release: '{{{version}}}',
|
|
tags: {
|
|
commit: '{{{commit}}}'
|
|
},
|
|
dataCallback: function (data) {
|
|
var hash = window.location.hash;
|
|
if (hash) {
|
|
return JSON.parse(JSON.stringify(data).replace(new RegExp(hash.slice(1), 'g'), ''));
|
|
}
|
|
return data;
|
|
}
|
|
}
|
|
var SENTRY_ID = '{{{sentryId}}}';
|
|
{{/if}}
|
|
{{#if googleAnalyticsId}}
|
|
var GOOGLE_ANALYTICS_ID = '{{{googleAnalyticsId}}}';
|
|
{{/if}}
|
|
var MAXFILESIZE = {{{maxFileSize}}};
|
|
var EXPIRE_SECONDS = {{{expireSeconds}}};
|