1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-22 18:15:47 +02:00

Implement TweetDeck alert popup check

This commit is contained in:
chylex 2016-04-11 19:45:54 +02:00
parent 072810a3b5
commit b23fbf1e72

View File

@ -62,6 +62,11 @@
return true;
};
window.TD.controller.notifications.isPermissionGranted = function(){
return true;
};
// Finish init
isInitialized = true;
};
@ -85,7 +90,9 @@
container[0].setAttribute("data-tweetdeck-loaded","");
return;
}
// TODO check if popups are enabled first
var data = TD.controller.columnManager.get(column.attr("data-column"));
if (!data.model.getHasNotification())return;
Array.prototype.forEach.call(mutations,function(mutation){
Array.prototype.forEach.call(mutation.addedNodes,function(node){