mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 21:47:06 +03:00
Added tab update back
This commit is contained in:
@@ -84,6 +84,11 @@ window.addEventListener("hashchange", function(event){
|
|||||||
|
|
||||||
function messageListener(request, sender, sendResponse) {
|
function messageListener(request, sender, sendResponse) {
|
||||||
//messages from popup script
|
//messages from popup script
|
||||||
|
|
||||||
|
if (request.message == "update") {
|
||||||
|
if(id = getYouTubeVideoID(document.URL)) videoIDChange(id);
|
||||||
|
}
|
||||||
|
|
||||||
if (request.message == "sponsorStart") {
|
if (request.message == "sponsorStart") {
|
||||||
sponsorMessageStarted(sendResponse);
|
sponsorMessageStarted(sendResponse);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user