summaryrefslogtreecommitdiff
path: root/ext/fg
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-11-14 20:42:45 -0800
committerAlex Yatskov <alex@foosoft.net>2016-11-14 20:42:45 -0800
commit4e89d27fda22c73c6dc7f334ad355ec7a56beba7 (patch)
tree8e355e80e8ddce898e1a872f589e725adc912875 /ext/fg
parent71d8cd4a32a5764bab3a1b58ea00237b03f44788 (diff)
WIP
Diffstat (limited to 'ext/fg')
-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) {