diff --git a/views/jsconfig.handlebars b/views/jsconfig.handlebars index c9ddf16d..3dbe827c 100644 --- a/views/jsconfig.handlebars +++ b/views/jsconfig.handlebars @@ -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}}}; diff --git a/views/unsupported.handlebars b/views/unsupported.handlebars index 04a428b2..444060d5 100644 --- a/views/unsupported.handlebars +++ b/views/unsupported.handlebars @@ -1,19 +1,19 @@