diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-11-14 20:42:45 -0800 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-11-14 20:42:45 -0800 |
commit | 4e89d27fda22c73c6dc7f334ad355ec7a56beba7 (patch) | |
tree | 8e355e80e8ddce898e1a872f589e725adc912875 /ext/fg/js | |
parent | 71d8cd4a32a5764bab3a1b58ea00237b03f44788 (diff) |
WIP
Diffstat (limited to 'ext/fg/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) { |