From a42a54670b7e9644f57708ed9352663ccc57acaf Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Fri, 28 Jul 2017 16:13:45 -0700 Subject: [PATCH 1/2] redirect ie to /unsupported --- views/jsconfig.handlebars | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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}}}; From 566de140165daa04c62006144c5d773a99803a36 Mon Sep 17 00:00:00 2001 From: Abhinav Adduri Date: Mon, 31 Jul 2017 09:35:47 -0700 Subject: [PATCH 2/2] adding in hardcoded strings for ie, ie doesn't work with l20n: Object doesn't support property or method 'from' --- views/unsupported.handlebars | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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.