aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/translator.js
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/bg/js/translator.js
parentd32fd1381b6cd5141a21c22f9ef639b2fe9774fb (diff)
Use chrome.runtime.getURL instead of chrome.extension.getURL
Diffstat (limited to 'ext/bg/js/translator.js')
-rw-r--r--ext/bg/js/translator.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js
index ee012d96..9d90136b 100644
--- a/ext/bg/js/translator.js
+++ b/ext/bg/js/translator.js
@@ -31,7 +31,7 @@ class Translator {
}
if (!this.deinflector) {
- const url = chrome.extension.getURL('/bg/lang/deinflect.json');
+ const url = chrome.runtime.getURL('/bg/lang/deinflect.json');
const reasons = await requestJson(url, 'GET');
this.deinflector = new Deinflector(reasons);
}