From 8abab28c4db4bae6e1bce003fc228d26e0458c78 Mon Sep 17 00:00:00 2001 From: siikamiika Date: Thu, 13 Feb 2020 14:36:32 +0200 Subject: remove isPrepared check --- ext/mixed/js/display.js | 6 ------ 1 file changed, 6 deletions(-) (limited to 'ext/mixed/js') 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); -- cgit v1.2.3