diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-03-07 10:47:30 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-03-07 10:47:30 -0500 |
commit | 93aa275d827816c624f30548ac635b4fea1d23eb (patch) | |
tree | 8220d794de2b6a988a452de8403bbc7a233e5b12 /ext/bg/js/backend.js | |
parent | 7822230b7f969b74d3a307fe383a62be9e31c713 (diff) |
Use explicit dependency injection for ClipboardMonitor
Diffstat (limited to 'ext/bg/js/backend.js')
-rw-r--r-- | ext/bg/js/backend.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js index 2e46088c..3226dd9c 100644 --- a/ext/bg/js/backend.js +++ b/ext/bg/js/backend.js @@ -30,7 +30,7 @@ class Backend { this.translator = new Translator(); this.anki = new AnkiNull(); this.mecab = new Mecab(); - this.clipboardMonitor = new ClipboardMonitor(); + this.clipboardMonitor = new ClipboardMonitor({getClipboard: this._onApiClipboardGet.bind(this)}); this.options = null; this.optionsSchema = null; this.defaultAnkiFieldTemplates = null; |