diff options
author | Alex Yatskov <FooSoft@users.noreply.github.com> | 2019-08-17 09:05:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-17 09:05:33 -0700 |
commit | 8ebac935e8c0ee167514d5726b1e2e16921e4957 (patch) | |
tree | 905897bbe19b754597b31b89332e09d45a163c5e /ext/fg/js/popup.js | |
parent | 1d25c8a744837b02b5d4364d93df65dd4d0b7ed6 (diff) | |
parent | 3a5b06bd1078d39cf9b29cbc05a0cde13c96ca94 (diff) |
Merge pull request #182 from toasted-nutbread/anki-screenshot
Anki screenshot
Diffstat (limited to 'ext/fg/js/popup.js')
-rw-r--r-- | ext/fg/js/popup.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js index c8cc9baa..18dc0386 100644 --- a/ext/fg/js/popup.js +++ b/ext/fg/js/popup.js @@ -113,6 +113,14 @@ class Popup { return this.injected && this.container.style.visibility !== 'hidden'; } + setVisible(visible) { + if (visible) { + this.container.style.setProperty('display', ''); + } else { + this.container.style.setProperty('display', 'none', 'important'); + } + } + containsPoint(point) { if (!this.isVisible()) { return false; |