aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/fg/js/background.js2
-rw-r--r--ext/fg/js/display-frame.js2
-rw-r--r--ext/fg/js/frontend.js2
3 files changed, 3 insertions, 3 deletions
diff --git a/ext/fg/js/background.js b/ext/fg/js/background.js
index 52b533be..c072468b 100644
--- a/ext/fg/js/background.js
+++ b/ext/fg/js/background.js
@@ -28,7 +28,7 @@ function bgInvoke(action, params={}) {
}
});
} catch (e) {
- window.orphaned = true;
+ window.yomichanOrphaned = true;
reject(e.message);
}
});
diff --git a/ext/fg/js/display-frame.js b/ext/fg/js/display-frame.js
index b29a0379..c7da43e8 100644
--- a/ext/fg/js/display-frame.js
+++ b/ext/fg/js/display-frame.js
@@ -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}`);
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js
index e32a630d..8b4c182c 100644
--- a/ext/fg/js/frontend.js
+++ b/ext/fg/js/frontend.js
@@ -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);
}