fixed one bug, added some helper functions

This commit is contained in:
Abhinav Adduri 2017-07-20 16:06:06 -07:00
parent b9eb653f1f
commit cb0d69c5cd
3 changed files with 21 additions and 18 deletions

View file

@ -94,10 +94,21 @@ function findMetric(href) {
}
}
function isFile(id) {
return !['referrer',
'totalDownloads',
'totalUploads',
'testpilot_ga__cid'].includes(id);
}
const ONE_DAY_IN_MS = 86400000;
module.exports = {
arrayToHex,
hexToArray,
notify,
gcmCompliant,
findMetric
findMetric,
isFile,
ONE_DAY_IN_MS
};