summaryrefslogtreecommitdiff
path: root/ext/js/background/offscreen.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/background/offscreen.js')
-rw-r--r--ext/js/background/offscreen.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/js/background/offscreen.js b/ext/js/background/offscreen.js
index bab4d0c9..5e901005 100644
--- a/ext/js/background/offscreen.js
+++ b/ext/js/background/offscreen.js
@@ -39,7 +39,7 @@ export class Offscreen {
this._clipboardReader = new ClipboardReader(
(typeof document === 'object' && document !== null ? document : null),
'#clipboard-paste-target',
- '#clipboard-rich-content-paste-target'
+ '#clipboard-rich-content-paste-target',
);
@@ -57,7 +57,7 @@ export class Offscreen {
['findKanjiOffscreen', this._findKanjiHandler.bind(this)],
['findTermsOffscreen', this._findTermsHandler.bind(this)],
['getTermFrequenciesOffscreen', this._getTermFrequenciesHandler.bind(this)],
- ['clearDatabaseCachesOffscreen', this._clearDatabaseCachesHandler.bind(this)]
+ ['clearDatabaseCachesOffscreen', this._clearDatabaseCachesHandler.bind(this)],
]);
/* eslint-enable @stylistic/no-multi-spaces */
@@ -120,7 +120,7 @@ export class Offscreen {
/** @type {import('translation').FindKanjiOptions} */
const modifiedOptions = {
...options,
- enabledDictionaryMap: new Map(options.enabledDictionaryMap)
+ enabledDictionaryMap: new Map(options.enabledDictionaryMap),
};
return await this._translator.findKanji(text, modifiedOptions);
}
@@ -147,7 +147,7 @@ export class Offscreen {
...options,
enabledDictionaryMap,
excludeDictionaryDefinitions,
- textReplacements
+ textReplacements,
};
return this._translator.findTerms(mode, text, modifiedOptions);
}