Assign a random id for easier deduplication/debugging

This commit is contained in:
shinigami-eyes 2019-05-12 16:12:16 +02:00
parent 7e604146d3
commit 8f0553170f
1 changed files with 1 additions and 0 deletions

View File

@ -388,6 +388,7 @@ function saveLabel(response) {
overrides[response.secondaryIdentifier] = response.mark;
browser.storage.local.set({ overrides: overrides });
response.version = CURRENT_VERSION;
response.submissionId = (Math.random() + '').replace('.', '');
overrides[PENDING_SUBMISSIONS].push(response);
submitPendingRatings();
//console.log(response);