cleanup
This commit is contained in:
parent
a0e2d9cb72
commit
611b4420af
@ -28,7 +28,7 @@ function bgInvoke(action, params={}) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
window.orphaned = true;
|
window.yomichanOrphaned = true;
|
||||||
reject(e.message);
|
reject(e.message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -44,7 +44,7 @@ window.displayFrame = new class extends Display {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleError(error) {
|
handleError(error) {
|
||||||
if (window.orphaned) {
|
if (window.yomichanOrphaned) {
|
||||||
this.showOrphaned();
|
this.showOrphaned();
|
||||||
} else {
|
} else {
|
||||||
window.alert(`Error: ${error}`);
|
window.alert(`Error: ${error}`);
|
||||||
|
@ -238,7 +238,7 @@ window.yomichanFrontend = new class {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleError(error, textSource) {
|
handleError(error, textSource) {
|
||||||
if (window.orphaned) {
|
if (window.yomichanOrphaned) {
|
||||||
if (textSource && this.options.scanning.modifier !== 'none') {
|
if (textSource && this.options.scanning.modifier !== 'none') {
|
||||||
this.popup.showOrphaned(textSource.getRect(), this.options);
|
this.popup.showOrphaned(textSource.getRect(), this.options);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user