This commit is contained in:
Alex Yatskov 2017-07-20 21:34:10 -07:00
parent a0e2d9cb72
commit 611b4420af
3 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ function bgInvoke(action, params={}) {
}
});
} catch (e) {
window.orphaned = true;
window.yomichanOrphaned = true;
reject(e.message);
}
});

View File

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

View File

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