2017-07-28 23:13:45 +00: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');
|
|
|
|
}
|
|
|
|
|
2017-08-02 21:13:53 +00:00
|
|
|
{{#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}}}';
|
2017-07-19 21:00:10 +00:00
|
|
|
{{/if}}
|
2017-08-02 21:13:53 +00:00
|
|
|
{{#if googleAnalyticsId}}
|
|
|
|
var GOOGLE_ANALYTICS_ID = '{{{googleAnalyticsId}}}';
|
2017-07-19 21:00:10 +00:00
|
|
|
{{/if}}
|
2017-07-28 23:13:45 +00:00
|
|
|
var MAXFILESIZE = {{{maxFileSize}}};
|
|
|
|
var EXPIRE_SECONDS = {{{expireSeconds}}};
|