show error page on firefox v49 and below

This commit is contained in:
Erica Wright 2017-07-27 11:13:59 -04:00
parent 303b34a70b
commit 6b291ae012
No known key found for this signature in database
GPG key ID: D9F2AF9D67D0AAB7
3 changed files with 17 additions and 19 deletions

View file

@ -1,6 +1,6 @@
require('./common');
const FileReceiver = require('./fileReceiver');
const { notify, findMetric, gcmCompliant, sendEvent } = require('./utils');
const { notify, findMetric, sendEvent } = require('./utils');
const bytes = require('bytes');
const Storage = require('./storage');
const storage = new Storage(localStorage);
@ -11,14 +11,6 @@ require('jquery-circle-progress');
const Raven = window.Raven;
$(document).ready(function() {
gcmCompliant().catch(err => {
$('#download').attr('hidden', true);
sendEvent('recipient', 'unsupported', {
cd6: err
}).then(() => {
location.replace('/unsupported');
});
});
//link back to homepage
$('.send-new').attr('href', window.location.origin);