diff options
| author | anekos | 2011-07-21 09:29:34 +0900 | 
|---|---|---|
| committer | anekos | 2011-07-21 09:29:34 +0900 | 
| commit | ca94448b81f799f2a68746bf08266a35010e92f5 (patch) | |
| tree | 5bc30cd9b06b133474556351e1a1c4fdd3777091 | |
| parent | c5f809ba95abfc4a1e15220f036a8bc4cd333762 (diff) | |
| download | vimperator-plugins-ca94448b81f799f2a68746bf08266a35010e92f5.tar.bz2 | |
ごはん亭たいおう
| -rw-r--r-- | google-plus-commando.js | 8 | 
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;    }  | 
