diff options
Diffstat (limited to 'ext/bg/js/api.js')
-rw-r--r-- | ext/bg/js/api.js | 2 |
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, |