aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mixed/js')
-rw-r--r--ext/mixed/js/display.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index eeb42040..0aa19aec 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -508,8 +508,8 @@ class Display {
await this.setPopupVisible(false);
await Display.delay(1); // Wait for popup to be hidden.
- const format = 'png';
- const dataUrl = await apiScreenshotGet({format});
+ const {format, quality} = this.options.anki.screenshot;
+ const dataUrl = await apiScreenshotGet({format, quality});
if (!dataUrl || dataUrl.error) { return; }
return {dataUrl, format};