From 1d2b6b2010d10822a39e9275c7ff607b9d2da9d6 Mon Sep 17 00:00:00 2001 From: Official Noob <31563761+OfficialNoob@users.noreply.github.com> Date: Wed, 1 Jan 2020 14:50:05 +0000 Subject: [PATCH] userID --- background.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/background.js b/background.js index 8e45f5ac..b9aa7670 100644 --- a/background.js +++ b/background.js @@ -43,7 +43,7 @@ chrome.runtime.onMessage.addListener(function (request, sender, callback) { //add help page on install chrome.runtime.onInstalled.addListener(function (object) { setTimeout(function() { - const userID = result.userID; + const userID = SB.config.userID; // If there is no userID, then it is the first install. if (!userID){ @@ -92,8 +92,7 @@ function addSponsorTime(time, videoID, callback) { } function submitVote(type, UUID, callback) { - chrome.storage.sync.get(["userID"], function(result) { - let userID = result.userID; + let userID = SB.config.userID; if (userID == undefined || userID === "undefined") { //generate one @@ -121,7 +120,6 @@ function submitVote(type, UUID, callback) { }); } }) - }) } async function submitTimes(videoID, callback) {