aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js/display.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2020-02-13 14:36:32 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2020-02-13 14:36:32 +0200
commit8abab28c4db4bae6e1bce003fc228d26e0458c78 (patch)
tree248c131fe657067f4459f85f47514b0624cd26c3 /ext/mixed/js/display.js
parentc0225f1f844376e5f61222a4d8186a2c914026eb (diff)
remove isPrepared check
Diffstat (limited to 'ext/mixed/js/display.js')
-rw-r--r--ext/mixed/js/display.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index 8dea625d..b524fe34 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -49,10 +49,6 @@ class Display {
yomichan.on('optionsUpdate', () => this.updateOptions(null));
}
- isPrepared() {
- return this.options !== null;
- }
-
onError(_error) {
throw new Error('Override me');
}
@@ -358,7 +354,6 @@ class Display {
async setContentTerms(definitions, context, token) {
if (!context) { throw new Error('Context expected'); }
- if (!this.isPrepared()) { return; }
this.setEventListenersActive(false);
@@ -419,7 +414,6 @@ class Display {
async setContentKanji(definitions, context, token) {
if (!context) { throw new Error('Context expected'); }
- if (!this.isPrepared()) { return; }
this.setEventListenersActive(false);