mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-06 11:37:02 +03:00
Update background.js
This commit is contained in:
@@ -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)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user