adding metrics event

This commit is contained in:
Abhinav Adduri
2017-07-27 09:09:09 -07:00
committed by Erica Wright
parent 6b291ae012
commit fae6561393

View File

@@ -22,5 +22,9 @@ gcmCompliant().catch(err => {
if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1 &&
parseInt(navigator.userAgent.toLowerCase().match(/firefox\/*([^\n\r]*)\./)[1]) <= 49) {
location.replace('/unsupported');
sendEvent('sender', 'unsupported', {
cd6: 'Unsupported Firefox'
}).then(() => {
location.replace('/unsupported');
});
}