From 7a3315d75d91e37f69cf23faa0e5b189ad548e52 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Tue, 22 Oct 2019 20:23:03 -0400 Subject: Use chrome.runtime.getURL instead of chrome.extension.getURL --- ext/bg/js/translator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/bg/js/translator.js') 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); } -- cgit v1.2.3