aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/dictionary.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-08-18 21:14:09 -0700
committerAlex Yatskov <alex@foosoft.net>2017-08-18 21:14:09 -0700
commit30fe3d250646e0993cc49a7ef6b783eee206d043 (patch)
treec9d744ce3290005775dc8e9da08c79f8518c96af /ext/bg/js/dictionary.js
parent922d2cd468ec1d05fc4d68f60419a6af11aa5c94 (diff)
fix anki network error dialog on search page, cleanup template
workaround
Diffstat (limited to 'ext/bg/js/dictionary.js')
-rw-r--r--ext/bg/js/dictionary.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/bg/js/dictionary.js b/ext/bg/js/dictionary.js
index fc479e85..2a80e2d0 100644
--- a/ext/bg/js/dictionary.js
+++ b/ext/bg/js/dictionary.js
@@ -223,10 +223,7 @@ function dictFieldFormat(field, definition, mode, options) {
modeKanji: mode === 'kanji'
};
- field = field.replace(
- `{${marker}}`,
- handlebarsRender('fields.html', data).trim()
- );
+ field = field.replace(`{${marker}}`, handlebarsRender('fields.html', data));
}
return field;