catch JSON.parse errors of storage metadata

This commit is contained in:
Danny Coates 2017-08-02 11:17:23 -07:00
parent f1c894d14f
commit 2897a39131
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
2 changed files with 7 additions and 7 deletions

View file

@ -99,12 +99,7 @@ function findMetric(href) {
}
function isFile(id) {
return ![
'referrer',
'totalDownloads',
'totalUploads',
'testpilot_ga__cid'
].includes(id);
return /^[0-9a-fA-F]{10}$/.test(id);
}
function sendEvent() {