aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorCashew <52880648+Scrub1492@users.noreply.github.com>2023-12-25 15:51:01 +0700
committerGitHub <noreply@github.com>2023-12-25 08:51:01 +0000
commit8e95d99e6a1891eaf9331f6384fa3b1a1065b871 (patch)
tree2c5977e66410b502da436da7381d67b38698b5c4 /ext
parente0659a84b2c85344e000536f4d3fa53bd5932567 (diff)
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
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)); }