From 317a7a1538ee6bf0f16077af01d3cc309d15fa57 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sat, 17 Aug 2019 15:42:36 -0700 Subject: pr fixes --- ext/bg/js/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/bg/js') 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, -- cgit v1.2.3