summaryrefslogtreecommitdiff
path: root/ext/mixed/js/api.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-15 20:33:20 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-15 20:33:20 -0500
commit496d2599ea6d9607b554641ded77cc82a6b9df42 (patch)
tree115e29e0bd77401294827c1be2637b4b46c7b8a9 /ext/mixed/js/api.js
parentfaf15c08aa6777d1ae2d112c55659e08d53156c6 (diff)
Move error handling for apiDefinitionsAddable
Diffstat (limited to 'ext/mixed/js/api.js')
-rw-r--r--ext/mixed/js/api.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mixed/js/api.js b/ext/mixed/js/api.js
index 715c8286..86bdc73c 100644
--- a/ext/mixed/js/api.js
+++ b/ext/mixed/js/api.js
@@ -58,7 +58,7 @@ function apiDefinitionAdd(definition, mode, context, optionsContext) {
}
function apiDefinitionsAddable(definitions, modes, optionsContext) {
- return _apiInvoke('definitionsAddable', {definitions, modes, optionsContext}).catch(() => null);
+ return _apiInvoke('definitionsAddable', {definitions, modes, optionsContext});
}
function apiNoteView(noteId) {