mirror of
https://github.com/mozilla/send.git
synced 2026-02-11 13:34:56 -05:00
show error page on firefox v49 and below
This commit is contained in:
@@ -3,8 +3,24 @@ window.Raven.config(window.dsn).install();
|
||||
window.dsn = undefined;
|
||||
|
||||
const testPilotGA = require('testpilot-ga');
|
||||
const {gcmCompliant, sendEvent} = require('./utils');
|
||||
window.analytics = new testPilotGA({
|
||||
an: 'Firefox Send',
|
||||
ds: 'web',
|
||||
tid: window.trackerId
|
||||
});
|
||||
|
||||
gcmCompliant().catch(err => {
|
||||
$('#page-one').attr('hidden', true);
|
||||
$('#download').attr('hidden', true);
|
||||
sendEvent('sender', 'unsupported', {
|
||||
cd6: err
|
||||
}).then(() => {
|
||||
location.replace('/unsupported');
|
||||
});
|
||||
});
|
||||
|
||||
if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1 &&
|
||||
parseInt(navigator.userAgent.toLowerCase().match(/firefox\/*([^\n\r]*)\./)[1]) <= 49) {
|
||||
location.replace('/unsupported');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user