aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/api.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-09 21:29:48 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-13 23:11:56 -0500
commit5a743505528cc2cc96ab6bf41a7460c75f6c084c (patch)
tree9fad0b9579e8909e806abec0d9a082f77bde020c /ext/bg/js/api.js
parent233ed4d0fb32291d9ba3f9b0a358496bf1093fb4 (diff)
Move apiNoteView implementation into Backend
Diffstat (limited to 'ext/bg/js/api.js')
-rw-r--r--ext/bg/js/api.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/api.js b/ext/bg/js/api.js
index 497d81bf..9de1fb4b 100644
--- a/ext/bg/js/api.js
+++ b/ext/bg/js/api.js
@@ -57,8 +57,8 @@ function apiDefinitionsAddable(definitions, modes, optionsContext) {
return utilBackend()._onApiDefinitionsAddable({definitions, modes, optionsContext});
}
-async function apiNoteView(noteId) {
- return utilBackend().anki.guiBrowse(`nid:${noteId}`);
+function apiNoteView(noteId) {
+ return utilBackend()._onApiNoteView({noteId});
}
async function apiTemplateRender(template, data, dynamic) {