diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-04-11 20:45:23 -0400 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-04-18 21:11:15 -0400 |
commit | 6498556ec7ddd3e0896ef47cce297bcbf938defb (patch) | |
tree | f312a1cfa63a190d739499bc8009d8f428922035 /ext/bg/js/util.js | |
parent | 03d77cc3a6c4dfb15fa83c6caa60563103ca7776 (diff) |
Update isPrepared to be consistent with DisplaySearch's isPrepared
Diffstat (limited to 'ext/bg/js/util.js')
-rw-r--r-- | ext/bg/js/util.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js index 5edcc193..d2fb0e49 100644 --- a/ext/bg/js/util.js +++ b/ext/bg/js/util.js @@ -60,7 +60,7 @@ function utilBackgroundFunctionIsolate(func) { function utilBackend() { const backend = chrome.extension.getBackgroundPage().yomichanBackend; - if (!backend.isPrepared) { + if (!backend.isPrepared()) { throw new Error('Backend not ready yet'); } return backend; |