fixed metrics for sender and recipient
This commit is contained in:
parent
fae6561393
commit
8eae1f282b
|
@ -9,22 +9,3 @@ window.analytics = new testPilotGA({
|
||||||
ds: 'web',
|
ds: 'web',
|
||||||
tid: window.trackerId
|
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) {
|
|
||||||
sendEvent('sender', 'unsupported', {
|
|
||||||
cd6: 'Unsupported Firefox'
|
|
||||||
}).then(() => {
|
|
||||||
location.replace('/unsupported');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
|
@ -8,6 +8,25 @@ const storage = new Storage(localStorage);
|
||||||
const $ = require('jquery');
|
const $ = require('jquery');
|
||||||
require('jquery-circle-progress');
|
require('jquery-circle-progress');
|
||||||
|
|
||||||
|
gcmCompliant().catch(err => {
|
||||||
|
$('#page-one').attr('hidden', true);
|
||||||
|
$('#download').attr('hidden', true);
|
||||||
|
sendEvent('recipient', 'unsupported', {
|
||||||
|
cd6: err
|
||||||
|
}).then(() => {
|
||||||
|
location.replace('/unsupported');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1 &&
|
||||||
|
parseInt(navigator.userAgent.toLowerCase().match(/firefox\/*([^\n\r]*)\./)[1]) <= 49) {
|
||||||
|
sendEvent('recipient', 'unsupported', {
|
||||||
|
cd6: new Error('Firefox is outdated.')
|
||||||
|
}).then(() => {
|
||||||
|
location.replace('/unsupported');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
const Raven = window.Raven;
|
const Raven = window.Raven;
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
|
@ -11,6 +11,26 @@ const bytes = require('bytes');
|
||||||
const Storage = require('./storage');
|
const Storage = require('./storage');
|
||||||
const storage = new Storage(localStorage);
|
const storage = new Storage(localStorage);
|
||||||
|
|
||||||
|
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) {
|
||||||
|
sendEvent('sender', 'unsupported', {
|
||||||
|
cd6: new Error('Firefox is outdated.')
|
||||||
|
}).then(() => {
|
||||||
|
location.replace('/unsupported');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const $ = require('jquery');
|
const $ = require('jquery');
|
||||||
require('jquery-circle-progress');
|
require('jquery-circle-progress');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue