diff options
author | Alex Yatskov <alex@foosoft.net> | 2019-08-17 15:42:36 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2019-08-17 15:42:36 -0700 |
commit | 317a7a1538ee6bf0f16077af01d3cc309d15fa57 (patch) | |
tree | 839ed8f6a3cde11949e3e10e8fd3c561672b15ab /ext/bg | |
parent | 9ec711b780bf3ee2390a52502b293e89158cb53c (diff) |
pr fixes
Diffstat (limited to 'ext/bg')
-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, |