aboutsummaryrefslogtreecommitdiffstats
path: root/google-plus-commando.js
diff options
context:
space:
mode:
authoranekos2011-07-21 09:29:34 +0900
committeranekos2011-07-21 09:29:34 +0900
commitca94448b81f799f2a68746bf08266a35010e92f5 (patch)
tree5bc30cd9b06b133474556351e1a1c4fdd3777091 /google-plus-commando.js
parentc5f809ba95abfc4a1e15220f036a8bc4cd333762 (diff)
downloadvimperator-plugins-ca94448b81f799f2a68746bf08266a35010e92f5.tar.bz2
ごはん亭たいおう
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;
}