summaryrefslogtreecommitdiff
path: root/ext/mixed/js
diff options
context:
space:
mode:
authorAlex Yatskov <FooSoft@users.noreply.github.com>2019-10-05 19:48:21 -0700
committerGitHub <noreply@github.com>2019-10-05 19:48:21 -0700
commita4d2bde5dfbe17c03e5aede38ccd4b27753aef48 (patch)
tree7f60cf5f6004145496351139e42d4b5c71cfbb5a /ext/mixed/js
parentbac237336e4578e339069a8d9d8f83703a3cee5d (diff)
parent113cc725c1764e5eb814a22ace23a7e7150d016f (diff)
Merge pull request #240 from toasted-nutbread/fix-focus
Fix focus
Diffstat (limited to 'ext/mixed/js')
-rw-r--r--ext/mixed/js/display.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index dc64dbea..575011fd 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -445,7 +445,7 @@ class Display {
async getScreenshot() {
try {
- await this.setPopupVisible(false);
+ await this.setPopupVisibleOverride(false);
await Display.delay(1); // Wait for popup to be hidden.
const {format, quality} = this.options.anki.screenshot;
@@ -454,7 +454,7 @@ class Display {
return {dataUrl, format};
} finally {
- await this.setPopupVisible(true);
+ await this.setPopupVisibleOverride(null);
}
}
@@ -462,8 +462,8 @@ class Display {
return this.options.general.resultOutputMode === 'merge' ? 0 : -1;
}
- setPopupVisible(visible) {
- return apiForward('popupSetVisible', {visible});
+ setPopupVisibleOverride(visible) {
+ return apiForward('popupSetVisibleOverride', {visible});
}
setSpinnerVisible(visible) {