mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-30 05:34:06 +02:00
Implement TweetDeck alert popup check
This commit is contained in:
parent
072810a3b5
commit
b23fbf1e72
@ -62,6 +62,11 @@
|
|||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
window.TD.controller.notifications.isPermissionGranted = function(){
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
|
||||||
|
// Finish init
|
||||||
isInitialized = true;
|
isInitialized = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -85,7 +90,9 @@
|
|||||||
container[0].setAttribute("data-tweetdeck-loaded","");
|
container[0].setAttribute("data-tweetdeck-loaded","");
|
||||||
return;
|
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(mutations,function(mutation){
|
||||||
Array.prototype.forEach.call(mutation.addedNodes,function(node){
|
Array.prototype.forEach.call(mutation.addedNodes,function(node){
|
||||||
|
Loading…
Reference in New Issue
Block a user