summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-09-29 21:04:03 -0700
committerAlex Yatskov <alex@foosoft.net>2016-09-29 21:04:03 -0700
commit1d573f4179503ea9e1cc15327f67e8b52740adad (patch)
treebbdc95cc0a52a4b9e3451aac831f349335edf227 /ext
parente433207968df03cc5358d89875b0af45122e6629 (diff)
Add visibility query
Diffstat (limited to 'ext')
-rw-r--r--ext/fg/js/popup.js4
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';