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