summaryrefslogtreecommitdiff
path: root/ext/fg
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-07-20 21:34:10 -0700
committerAlex Yatskov <alex@foosoft.net>2017-07-20 21:34:10 -0700
commit611b4420af9aa5c8ad6287996b73ae8fd2eb2f4b (patch)
treeb003ff628edceb069049e17625bbf0ebe4a6192f /ext/fg
parenta0e2d9cb721d44a89715f3a9df10135c2aebfe29 (diff)
cleanup
Diffstat (limited to 'ext/fg')
-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);
}