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';