mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-07 12:07:11 +03:00
Switched to a listener map.
This commit is contained in:
@@ -4,7 +4,9 @@ chrome.tabs.onUpdated.addListener(function(tabId) {
|
||||
}, () => void chrome.runtime.lastError ); // Suppress error on Firefox
|
||||
});
|
||||
|
||||
chrome.runtime.onMessage.addListener(function (request, sender, callback) {
|
||||
chrome.runtime.onMessage.addListener(async function (request, sender, callback) {
|
||||
await wait(() => SB.config !== undefined);
|
||||
|
||||
switch(request.message) {
|
||||
case "submitTimes":
|
||||
submitTimes(request.videoID, callback);
|
||||
|
||||
Reference in New Issue
Block a user