diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-09-29 21:04:03 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-09-29 21:04:03 -0700 |
commit | 1d573f4179503ea9e1cc15327f67e8b52740adad (patch) | |
tree | bbdc95cc0a52a4b9e3451aac831f349335edf227 | |
parent | e433207968df03cc5358d89875b0af45122e6629 (diff) |
Add visibility query
-rw-r--r-- | ext/fg/js/popup.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js index 88b8e4e3..31ff02d8 100644 --- a/ext/fg/js/popup.js +++ b/ext/fg/js/popup.js @@ -51,6 +51,10 @@ class Popup { this.showAt({x: posX, y: posY}, content); } + visible() { + return this.popup !== null && this.popup.style.visibility !== 'hidden'; + } + hide() { if (this.popup !== null) { this.popup.style.visibility = 'hidden'; |