fixed one bug, added some helper functions
This commit is contained in:
parent
b9eb653f1f
commit
cb0d69c5cd
3 changed files with 21 additions and 18 deletions
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue