final fixes
This commit is contained in:
parent
14f3d837f9
commit
9585850d6d
4 changed files with 148 additions and 173 deletions
|
@ -101,6 +101,13 @@ function isFile(id) {
|
|||
'testpilot_ga__cid'].includes(id);
|
||||
}
|
||||
|
||||
function sendEvent() {
|
||||
return window.analytics
|
||||
.sendEvent
|
||||
.apply(window.analytics, arguments)
|
||||
.catch(() => 0);
|
||||
}
|
||||
|
||||
const ONE_DAY_IN_MS = 86400000;
|
||||
|
||||
module.exports = {
|
||||
|
@ -110,5 +117,6 @@ module.exports = {
|
|||
gcmCompliant,
|
||||
findMetric,
|
||||
isFile,
|
||||
sendEvent,
|
||||
ONE_DAY_IN_MS
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue