summaryrefslogtreecommitdiff
path: root/ext/fg/js
diff options
context:
space:
mode:
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) {