From b23fbf1e72dc8ba5d29729dea3936ca014fcdb25 Mon Sep 17 00:00:00 2001 From: chylex <info@chylex.com> Date: Mon, 11 Apr 2016 19:45:54 +0200 Subject: [PATCH] Implement TweetDeck alert popup check --- Resources/code.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Resources/code.js b/Resources/code.js index 84d87516..fc43e5f1 100644 --- a/Resources/code.js +++ b/Resources/code.js @@ -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){