Made it work when multiple tabs are opened in the background.

Now uses the focused tab instead of last tab updated.
This commit is contained in:
Ajay Ramachandran
2019-07-25 18:25:50 -04:00
parent 30e3222177
commit 725ab783e3
2 changed files with 28 additions and 22 deletions

View File

@@ -1,11 +1,5 @@
if(id = getYouTubeVideoID(document.URL)){ // Direct Links
videoIDChange(id);
//tell background.js about this
chrome.runtime.sendMessage({
message: "ytvideoid",
videoID: id
});
}
//was sponsor data found when doing SponsorsLookup