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 @@
-
+
Your browser is not supported.
{{#if outdated}} -
+
Unfortunately this version of Firefox does not support the web technology that powers Firefox Send. You’ll need to update your browser.
-
+
Update Firefox
{{else}} -
+
Unfortunately this browser does not support the web technology that powers Firefox Send. You’ll need to try another browser. We recommend Firefox!
Firefox
- + Free Download
{{/if}} -
+
Send files through a safe, private, and encrypted link that automatically expires to ensure your stuff does not remain online forever.