aboutsummaryrefslogtreecommitdiffstats
path: root/google-plus-commando.js
diff options
context:
space:
mode:
Diffstat (limited to 'google-plus-commando.js')
-rw-r--r--google-plus-commando.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/google-plus-commando.js b/google-plus-commando.js
index c1de05c..ae5c4c8 100644
--- a/google-plus-commando.js
+++ b/google-plus-commando.js
@@ -228,7 +228,13 @@ let INFO =
function Notifications (root) {
let self = {
get root () root,
- get visible () (parseInt(root.style.height, 10) > 0)
+ get visible () {
+ let h = parseInt(root.style.height, 10) > 0;
+ if (!h)
+ return false;
+ let nwc = plugins.googlePlusCommando.element.frames.notifications.root.contentDocument.querySelector('#nw-content');
+ return parseInt(util.computedStyle(nwc).height, 10) > 100;
+ }
};
return self;
}