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);