aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/options.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-02-12 19:56:24 -0500
committerGitHub <noreply@github.com>2021-02-12 19:56:24 -0500
commit2b4af57bd764ee07ed1d7db8e2985e34ba7ef8ea (patch)
tree06af52cf528773838c1144a323e74c93ddebdf45 /ext/bg/js/options.js
parent37f916171812afe22f1b435d9e06b52af5d8292a (diff)
Move data folder (#1371)
* Move handlebars template files * Move schema files
Diffstat (limited to 'ext/bg/js/options.js')
-rw-r--r--ext/bg/js/options.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js
index 9e0e9cf0..1105dfed 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -28,7 +28,7 @@ class OptionsUtil {
}
async prepare() {
- this._optionsSchema = await this._fetchAsset('/bg/data/options-schema.json', true);
+ this._optionsSchema = await this._fetchAsset('/data/schemas/options-schema.json', true);
}
async update(options) {
@@ -487,7 +487,7 @@ class OptionsUtil {
async _updateVersion3(options) {
// Version 3 changes:
// Pitch accent Anki field templates added.
- await this._applyAnkiFieldTemplatesPatch(options, '/bg/data/anki-field-templates-upgrade-v2.handlebars');
+ await this._applyAnkiFieldTemplatesPatch(options, '/data/templates/anki-field-templates-upgrade-v2.handlebars');
return options;
}
@@ -572,7 +572,7 @@ class OptionsUtil {
});
profileOptions.scanning.inputs = scanningInputs;
}
- await this._applyAnkiFieldTemplatesPatch(options, '/bg/data/anki-field-templates-upgrade-v4.handlebars');
+ await this._applyAnkiFieldTemplatesPatch(options, '/data/templates/anki-field-templates-upgrade-v4.handlebars');
return options;
}
@@ -592,7 +592,7 @@ class OptionsUtil {
// Added global option useSettingsV2.
// Added anki.checkForDuplicates.
// Added general.glossaryLayoutMode; removed general.compactGlossaries.
- await this._applyAnkiFieldTemplatesPatch(options, '/bg/data/anki-field-templates-upgrade-v6.handlebars');
+ await this._applyAnkiFieldTemplatesPatch(options, '/data/templates/anki-field-templates-upgrade-v6.handlebars');
options.global.showPopupPreview = false;
options.global.useSettingsV2 = false;
for (const profile of options.profiles) {
@@ -665,7 +665,7 @@ class OptionsUtil {
// Moved general.enableClipboardMonitor => clipboard.enableSearchPageMonitor. Forced value to false due to a bug which caused its value to not be read.
// Moved general.maximumClipboardSearchLength => clipboard.maximumSearchLength.
// Added clipboard.autoSearchContent.
- await this._applyAnkiFieldTemplatesPatch(options, '/bg/data/anki-field-templates-upgrade-v8.handlebars');
+ await this._applyAnkiFieldTemplatesPatch(options, '/data/templates/anki-field-templates-upgrade-v8.handlebars');
options.global.useSettingsV2 = true;
for (const profile of options.profiles) {
profile.options.translation.textReplacements = {