Update background.js

This commit is contained in:
Official Noob
2019-08-08 20:32:18 +01:00
committed by GitHub
parent 1b5d5f8a3a
commit 02448307ab

View File

@@ -5,9 +5,9 @@ var userID = null;
var sponsorVideoID = null;
chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) {
chrome.runtime.sendMessage({
message: "update",
});
chrome.tabs.sendMessage(tabId, {
message: 'update',
});
});
chrome.runtime.onMessage.addListener(function (request, sender, callback) {