summaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/api.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/api.js b/ext/bg/js/api.js
index c33ba709..4b2bacd7 100644
--- a/ext/bg/js/api.js
+++ b/ext/bg/js/api.js
@@ -64,7 +64,7 @@ async function apiDefinitionAdd(definition, mode, context) {
);
}
- if (context.screenshot) {
+ if (context && context.screenshot) {
await apiInjectScreenshot(
definition,
options.anki.terms.fields,