Fixed userIDs not being properly submitted.

This commit is contained in:
Ajay Ramachandran
2019-08-12 15:58:25 -04:00
parent 6b3eb09198
commit 41aa58e004

View File

@@ -141,7 +141,7 @@ function submitVote(type, UUID, callback) {
function submitTimes(videoID, callback) {
//get the video times from storage
let sponsorTimeKey = 'sponsorTimes' + videoID;
chrome.storage.sync.get([sponsorTimeKey], function(result) {
chrome.storage.sync.get([sponsorTimeKey, "userID"], function(result) {
let sponsorTimes = result[sponsorTimeKey];
let userID = result.userID;