From 02448307ab407bdfc1b3561a01329179251b9457 Mon Sep 17 00:00:00 2001 From: Official Noob <31563761+OfficialNoob@users.noreply.github.com> Date: Thu, 8 Aug 2019 20:32:18 +0100 Subject: [PATCH] Update background.js --- background.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/background.js b/background.js index ac174a3e..da9a1d39 100644 --- a/background.js +++ b/background.js @@ -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) {