mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
Update background.js
This commit is contained in:
parent
a229b645e3
commit
9011da564a
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue