summaryrefslogtreecommitdiff
path: root/ext/fg/js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-10-26 20:30:44 -0700
committerAlex Yatskov <alex@foosoft.net>2016-10-26 20:30:44 -0700
commit5710dc55a73491a0be2259fbd21874bddda54877 (patch)
tree7169f5f6bffea554769e98ad2d82317c46352059 /ext/fg/js
parentd9e3e68f48dd2024814cf5cd4c035a3234e4942d (diff)
Fix #22
Diffstat (limited to 'ext/fg/js')
-rw-r--r--ext/fg/js/util.js2
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) {