Sync Video ID with Storage API

This commit is contained in:
Official Noob
2019-08-08 14:44:48 +01:00
committed by GitHub
parent a9ea22f505
commit 22e7c6a40d

View File

@@ -179,10 +179,11 @@ document.onkeydown = function(e){
} }
function videoIDChange(id) { function videoIDChange(id) {
//not a url change //not a url change
if (sponsorVideoID == id){ if (sponsorVideoID == id) return;
return;
} chrome.storage.sync.set({videoid: id});
//close popup //close popup
closeInfoMenu(); closeInfoMenu();