mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-12 18:04:20 +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(
|
chrome.tabs.onUpdated.addListener(
|
||||||
function(tabId, changeInfo, tab) {
|
function(tabId, changeInfo, tab) {
|
||||||
if (youtube_parser(changeInfo.url)) {
|
if (changeInfo.url) {
|
||||||
chrome.tabs.sendMessage( tabId, {
|
chrome.tabs.sendMessage( tabId, {
|
||||||
message: 'ytvideo',
|
message: 'ytvideoid',
|
||||||
url: changeInfo.url
|
id: youtube_parser(changeInfo.url)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue