From ca94448b81f799f2a68746bf08266a35010e92f5 Mon Sep 17 00:00:00 2001 From: anekos Date: Thu, 21 Jul 2011 09:29:34 +0900 Subject: ごはん亭たいおう --- google-plus-commando.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3