From 5710dc55a73491a0be2259fbd21874bddda54877 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Wed, 26 Oct 2016 20:30:44 -0700 Subject: Fix #22 --- ext/fg/js/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/fg/js') diff --git a/ext/fg/js/util.js b/ext/fg/js/util.js index 6f2fd28d..96007b74 100644 --- a/ext/fg/js/util.js +++ b/ext/fg/js/util.js @@ -50,7 +50,7 @@ function renderText(data, template) { } function canAddDefinitions(definitions, modes) { - return invokeApiBg('canAddDefinitions', {definitions, modes}); + return invokeApiBg('canAddDefinitions', {definitions, modes}).catch(() => null); } function addDefinition(definition, mode) { -- cgit v1.2.3