diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2020-05-23 03:03:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-22 20:03:34 -0400 |
commit | 39df44eca40d00242d99e8121179ae8aeffce961 (patch) | |
tree | d7bbc8f6d1c30aa80526482b6aaad6e442adf85a /ext/bg/js/backend.js | |
parent | 96ea941fa820a46c147bf9b494ab4710c69ecd9c (diff) |
Fix "tags" template (#539)
* fix tag templates for merge and group modes
* update version upgrade
* adjust upgrade replacement order
Diffstat (limited to 'ext/bg/js/backend.js')
-rw-r--r-- | ext/bg/js/backend.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js index 557ceb29..20d31efc 100644 --- a/ext/bg/js/backend.js +++ b/ext/bg/js/backend.js @@ -150,7 +150,7 @@ class Backend { await profileConditionsDescriptorPromise; this.optionsSchema = await requestJson(chrome.runtime.getURL('/bg/data/options-schema.json'), 'GET'); - this.defaultAnkiFieldTemplates = await requestText(chrome.runtime.getURL('/bg/data/default-anki-field-templates.handlebars'), 'GET'); + this.defaultAnkiFieldTemplates = (await requestText(chrome.runtime.getURL('/bg/data/default-anki-field-templates.handlebars'), 'GET')).trim(); this.options = await optionsLoad(); this.options = JsonSchema.getValidValueOrDefault(this.optionsSchema, this.options); |