mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-13 23:17:05 +03:00
Removed videoID as now message active tab
This commit is contained in:
8
popup.js
8
popup.js
@@ -207,9 +207,11 @@ function runThePopup() {
|
||||
}, onTabs);
|
||||
|
||||
function onTabs(tabs) {
|
||||
chrome.storage.sync.get(['videoID'], function(result) {
|
||||
loadTabData(tabs, result.videoid);
|
||||
});
|
||||
chrome.tabs.sendMessage(tabs[0].id, {message: 'getVideoID'}, function(result) {
|
||||
if (result.videoID) {
|
||||
loadTabData(tabs, result.videoid);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function loadTabData(tabs, currentVideoID) {
|
||||
|
||||
Reference in New Issue
Block a user