diff options
author | Official Noob <[email protected]> | 2019-01-15 19:01:37 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-01-15 19:01:37 +0000 |
commit | 9011da564acc605394b17f1ff32ec3d8029995e7 (patch) | |
tree | df5d0ea7ffefe64b2bc8c1529a43c48d5c141f1e | |
parent | a229b645e302f47509dfb619fe019d33a04fb830 (diff) | |
download | SponsorBlock-9011da564acc605394b17f1ff32ec3d8029995e7.tar.gz SponsorBlock-9011da564acc605394b17f1ff32ec3d8029995e7.zip |
Update background.js
-rw-r--r-- | background.js | 6 |
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) }) } } |