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

Modularized more functions, tiles on start page now clickable

This commit is contained in:
Krateng
2019-04-09 11:35:02 +02:00
parent 400c920958
commit 978f4f7788
3 changed files with 58 additions and 35 deletions

View File

@ -71,10 +71,9 @@ function onTabUpdated(tabId, changeInfo, tab) {
function onTabRemoved(tabId,removeInfo) {
console.log(tabId + " closed")
if (tabManagers.hasOwnProperty(tabId)) {
page = tabManagers[tabId].page
console.log("this tab was " + page + ", now removing manager")
console.log("closed tab was " + page + ", now removing manager")
tabManagers[tabId].stopPlayback("","") //in case we want to scrobble the playing track
delete tabManagers[tabId]
}