mirror of
https://github.com/timvisee/send.git
synced 2026-04-22 22:24:37 -04:00
fixed one bug, added some helper functions
This commit is contained in:
+12
-1
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user