remove isPrepared check

This commit is contained in:
siikamiika 2020-02-13 14:36:32 +02:00
parent c0225f1f84
commit 8abab28c4d

View File

@ -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);