From 9e8a520d1ed475dbe8f1c91ad6f731924773c85c Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Fri, 10 Jan 2020 20:48:16 -0500 Subject: [PATCH] Fixed broken voting. --- background.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/background.js b/background.js index f6d1d533..904e46d9 100644 --- a/background.js +++ b/background.js @@ -16,9 +16,7 @@ chrome.tabs.onUpdated.addListener(function(tabId) { }, () => void chrome.runtime.lastError ); // Suppress error on Firefox }); -chrome.runtime.onMessage.addListener(async function (request, sender, callback) { - await wait(() => SB.config !== undefined); - +chrome.runtime.onMessage.addListener(function (request, sender, callback) { switch(request.message) { case "submitTimes": submitTimes(request.videoID, callback);