summaryrefslogtreecommitdiff
path: root/ext/fg/js/popup.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg/js/popup.js')
-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';