1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Fixed scrobbler

This commit is contained in:
krateng
2023-03-28 00:06:59 +02:00
parent b4c8a0d68b
commit 11a5cb7401
3 changed files with 17 additions and 5 deletions

View File

@@ -83,6 +83,13 @@ function onTabUpdated(tabId, changeInfo, tab) {
//console.log("Still on same page!")
tabManagers[tabId].update();
// check if the setting for this page is still active
chrome.storage.local.get(["service_active_" + page],function(result){
if (!result["service_active_" + page]) {
delete tabManagers[tabId];
}
});
return
}
}