summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-01-10 16:49:40 -0500
committerGitHub <noreply@github.com>2021-01-10 16:49:40 -0500
commit25080ac82eef83fdaa921e2a8b12261130b8ac85 (patch)
tree6afa261d0693589462657f65e62ace8a99a5cbba /ext
parent7f07b905abc42c10b8b71a06a60561bc169e851a (diff)
Change popupActionBarLocation to top (#1222)
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;
}