aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOfficial Noob <[email protected]>2019-01-15 19:01:37 +0000
committerGitHub <[email protected]>2019-01-15 19:01:37 +0000
commit9011da564acc605394b17f1ff32ec3d8029995e7 (patch)
treedf5d0ea7ffefe64b2bc8c1529a43c48d5c141f1e
parenta229b645e302f47509dfb619fe019d33a04fb830 (diff)
downloadSponsorBlock-9011da564acc605394b17f1ff32ec3d8029995e7.tar.gz
SponsorBlock-9011da564acc605394b17f1ff32ec3d8029995e7.zip
Update background.js
-rw-r--r--background.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/background.js b/background.js
index 3c0a0222..c34ded69 100644
--- a/background.js
+++ b/background.js
@@ -1,9 +1,9 @@
chrome.tabs.onUpdated.addListener(
function(tabId, changeInfo, tab) {
- if (youtube_parser(changeInfo.url)) {
+ if (changeInfo.url) {
chrome.tabs.sendMessage( tabId, {
- message: 'ytvideo',
- url: changeInfo.url
+ message: 'ytvideoid',
+ id: youtube_parser(changeInfo.url)
})
}
}