mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-07 22:50:53 +03:00
adding metrics event
This commit is contained in:
committed by
Erica Wright
parent
6b291ae012
commit
fae6561393
@@ -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');
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user