From 8e95d99e6a1891eaf9331f6384fa3b1a1065b871 Mon Sep 17 00:00:00 2001 From: Cashew <52880648+Scrub1492@users.noreply.github.com> Date: Mon, 25 Dec 2023 15:51:01 +0700 Subject: Style updates (#447) * style updates * style updates * style updates * revert changes to dev/lib/handlebars * revert changes to dev/lib/handlebars * revert changes to dev/lib/handlebars --- ext/js/display/search-display-controller.js | 2 +- ext/js/pages/settings/settings-main.js | 4 ++-- ext/js/templates/sandbox/anki-template-renderer.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ext/js') 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} */ - _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)); } -- cgit v1.2.3