summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/data/options-schema.json2
-rw-r--r--ext/bg/js/options.js2
2 files changed, 3 insertions, 1 deletions
diff --git a/ext/bg/data/options-schema.json b/ext/bg/data/options-schema.json
index 151a7fe3..5d23df02 100644
--- a/ext/bg/data/options-schema.json
+++ b/ext/bg/data/options-schema.json
@@ -283,7 +283,7 @@
"popupActionBarLocation": {
"type": "string",
"enum": ["left", "right", "top", "bottom"],
- "default": "right"
+ "default": "top"
}
}
},
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js
index 6c335346..86f76698 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -686,6 +686,7 @@ class OptionsUtil {
// Moved anki.sentenceExt to sentenceParsing.scanExtent.
// Added sentenceParsing.enableTerminationCharacters.
// Added sentenceParsing.terminationCharacters.
+ // Changed general.popupActionBarLocation.
for (const profile of options.profiles) {
profile.options.translation.textReplacements = {
searchOriginal: true,
@@ -710,6 +711,7 @@ class OptionsUtil {
]
};
delete profile.options.anki.sentenceExt;
+ profile.options.general.popupActionBarLocation = 'top';
}
return options;
}