aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-08-15 19:56:14 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-08-15 19:56:14 -0400
commit3a5b06bd1078d39cf9b29cbc05a0cde13c96ca94 (patch)
tree9bf9d86869425a4364bd6fe9ae5c79c50f1a39b4 /ext/mixed/js
parent0f0adf750c8cde668cdcf369cbe0ac173a9edf3f (diff)
Add screenshot settings
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};