summaryrefslogtreecommitdiff
path: root/ext/fg/js/driver.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-10-08 19:40:19 -0700
committerAlex Yatskov <alex@foosoft.net>2016-10-08 19:40:19 -0700
commitf34b51252245b1834e0cd049859782145156e09b (patch)
treeba1ed80e1fd22c0419a4efab7abe44961553b314 /ext/fg/js/driver.js
parentda0cb81801ac897fa41761af0b0b18fda9d16195 (diff)
Revert "Allow bootstrap in popup templates"
This reverts commit da0cb81801ac897fa41761af0b0b18fda9d16195.
Diffstat (limited to 'ext/fg/js/driver.js')
-rw-r--r--ext/fg/js/driver.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/fg/js/driver.js b/ext/fg/js/driver.js
index 79a3eb9f..1e817c1c 100644
--- a/ext/fg/js/driver.js
+++ b/ext/fg/js/driver.js
@@ -29,7 +29,7 @@ class Driver {
this.options = null;
this.definitions = null;
this.sequence = 0;
- this.extRoot = chrome.extension.getURL('.');
+ this.fgRoot = chrome.extension.getURL('fg');
chrome.runtime.onMessage.addListener(this.onBgMessage.bind(this));
window.addEventListener('message', this.onFrameMessage.bind(this));
@@ -139,7 +139,7 @@ class Driver {
});
const sequence = ++this.sequence;
- return renderText({definitions, sequence, root: this.extRoot, options: this.options}, 'term-list.html').then(content => {
+ return renderText({definitions, sequence, root: this.fgRoot, options: this.options}, 'term-list.html').then(content => {
this.definitions = definitions;
this.pendingLookup = false;
this.showPopup(textSource, content);
@@ -167,7 +167,7 @@ class Driver {
definitions.forEach(definition => definition.url = window.location.href);
const sequence = ++this.sequence;
- return renderText({definitions, sequence, root: this.extRoot, options: this.options}, 'kanji-list.html').then(content => {
+ return renderText({definitions, sequence, root: this.fgRoot, options: this.options}, 'kanji-list.html').then(content => {
this.definitions = definitions;
this.pendingLookup = false;
this.showPopup(textSource, content);
@@ -278,7 +278,7 @@ class Driver {
definitions.forEach(definition => definition.url = window.location.href);
const sequence = ++this.sequence;
- return renderText({definitions, sequence, root: this.extRoot, options: this.options}, 'kanji-list.html').then(content => {
+ return renderText({definitions, sequence, root: this.fgRoot, options: this.options}, 'kanji-list.html').then(content => {
this.definitions = definitions;
this.popup.setContent(content, definitions);
return canAddDefinitions(definitions, ['kanji']);