summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/js/display/search-display-controller.js2
-rw-r--r--ext/js/pages/settings/settings-main.js4
-rw-r--r--ext/js/templates/sandbox/anki-template-renderer.js2
3 files changed, 4 insertions, 4 deletions
diff --git a/ext/js/display/search-display-controller.js b/ext/js/display/search-display-controller.js
index 4dd41736..482afd56 100644
--- a/ext/js/display/search-display-controller.js
+++ b/ext/js/display/search-display-controller.js
@@ -279,7 +279,7 @@ export class SearchDisplayController {
/** */
_onCopy() {
- // ignore copy from search page
+ // Ignore copy from search page
const selection = window.getSelection();
this._clipboardMonitor.setPreviousText(selection !== null ? selection.toString().trim() : '');
}
diff --git a/ext/js/pages/settings/settings-main.js b/ext/js/pages/settings/settings-main.js
index 3abe3bcf..5f70890b 100644
--- a/ext/js/pages/settings/settings-main.js
+++ b/ext/js/pages/settings/settings-main.js
@@ -53,7 +53,7 @@ import {TranslationTextReplacementsController} from './translation-text-replacem
/**
* @param {GenericSettingController} genericSettingController
*/
-async function setupGenericSettingsController(genericSettingController) {
+async function setupGenericSettingController(genericSettingController) {
await genericSettingController.prepare();
await genericSettingController.refresh();
}
@@ -107,7 +107,7 @@ async function main() {
dictionaryImportController.prepare();
const genericSettingController = new GenericSettingController(settingsController);
- preparePromises.push(setupGenericSettingsController(genericSettingController));
+ preparePromises.push(setupGenericSettingController(genericSettingController));
const audioController = new AudioController(settingsController, modalController);
audioController.prepare();
diff --git a/ext/js/templates/sandbox/anki-template-renderer.js b/ext/js/templates/sandbox/anki-template-renderer.js
index 2d3c888c..57725bcb 100644
--- a/ext/js/templates/sandbox/anki-template-renderer.js
+++ b/ext/js/templates/sandbox/anki-template-renderer.js
@@ -669,7 +669,7 @@ export class AnkiTemplateRenderer {
/**
* @type {import('template-renderer').HelperFunction<string>}
*/
- _formatGlossary(args, context, options) {
+ _formatGlossary(args, _context, options) {
const [dictionary, content] = /** @type {[dictionary: string, content: import('dictionary-data').TermGlossary]} */ (args);
const data = options.data.root;
if (typeof content === 'string') { return this._stringToMultiLineHtml(this._escape(content)); }