summaryrefslogtreecommitdiff
path: root/ext/fg
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-10-22 20:23:03 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-10-22 20:23:03 -0400
commit7a3315d75d91e37f69cf23faa0e5b189ad548e52 (patch)
tree290ebea705885f662bf54aaed6c5ca9215f5fbb4 /ext/fg
parentd32fd1381b6cd5141a21c22f9ef639b2fe9774fb (diff)
Use chrome.runtime.getURL instead of chrome.extension.getURL
Diffstat (limited to 'ext/fg')
-rw-r--r--ext/fg/js/popup.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js
index b5eb9fe2..1f9317e0 100644
--- a/ext/fg/js/popup.js
+++ b/ext/fg/js/popup.js
@@ -30,7 +30,7 @@ class Popup {
this.container.className = 'yomichan-float';
this.container.addEventListener('mousedown', e => e.stopPropagation());
this.container.addEventListener('scroll', e => e.stopPropagation());
- this.container.setAttribute('src', chrome.extension.getURL('/fg/float.html'));
+ this.container.setAttribute('src', chrome.runtime.getURL('/fg/float.html'));
this.container.style.width = '0px';
this.container.style.height = '0px';
this.injectPromise = null;