summaryrefslogtreecommitdiff
path: root/ext/bg/js/util.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-18 21:16:25 -0400
committerGitHub <noreply@github.com>2020-04-18 21:16:25 -0400
commit3b2663ba0957c65be959ba18dc80e13625e28f02 (patch)
tree6750dfc7e2640ea9d0edee15cfca1768c7887c9c /ext/bg/js/util.js
parent03d77cc3a6c4dfb15fa83c6caa60563103ca7776 (diff)
parent51d756eefc26402e4d6f9635acc77ba7f642d15b (diff)
Merge pull request #448 from toasted-nutbread/badge-improvements
Badge improvements
Diffstat (limited to 'ext/bg/js/util.js')
-rw-r--r--ext/bg/js/util.js2
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;