diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-10-26 20:30:44 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-10-26 20:30:44 -0700 |
commit | 5710dc55a73491a0be2259fbd21874bddda54877 (patch) | |
tree | 7169f5f6bffea554769e98ad2d82317c46352059 /ext/fg/js/util.js | |
parent | d9e3e68f48dd2024814cf5cd4c035a3234e4942d (diff) |
Fix #22
Diffstat (limited to 'ext/fg/js/util.js')
-rw-r--r-- | ext/fg/js/util.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |