aboutsummaryrefslogtreecommitdiff
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.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/ext/js/background/offscreen.js b/ext/js/background/offscreen.js
index dbdb9773..3b8b6a3e 100644
--- a/ext/js/background/offscreen.js
+++ b/ext/js/background/offscreen.js
@@ -34,15 +34,13 @@ export class Offscreen {
/** @type {DictionaryDatabase} */
this._dictionaryDatabase = new DictionaryDatabase();
/** @type {Translator} */
- this._translator = new Translator({
- database: this._dictionaryDatabase
- });
+ this._translator = new Translator(this._dictionaryDatabase);
/** @type {ClipboardReader} */
- this._clipboardReader = new ClipboardReader({
- document: (typeof document === 'object' && document !== null ? document : null),
- pasteTargetSelector: '#clipboard-paste-target',
- richContentPasteTargetSelector: '#clipboard-rich-content-paste-target'
- });
+ this._clipboardReader = new ClipboardReader(
+ (typeof document === 'object' && document !== null ? document : null),
+ '#clipboard-paste-target',
+ '#clipboard-rich-content-paste-target'
+ );
/* eslint-disable @stylistic/no-multi-spaces */