From 30fe3d250646e0993cc49a7ef6b783eee206d043 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Fri, 18 Aug 2017 21:14:09 -0700 Subject: fix anki network error dialog on search page, cleanup template workaround --- ext/bg/js/dictionary.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'ext/bg/js/dictionary.js') 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; -- cgit v1.2.3