mirror of
https://github.com/timvisee/send.git
synced 2026-04-23 22:34:43 -04:00
catch JSON.parse errors of storage metadata
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user