summaryrefslogtreecommitdiff
path: root/ext/bg/js/api.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/api.js
parentd32fd1381b6cd5141a21c22f9ef639b2fe9774fb (diff)
Use chrome.runtime.getURL instead of chrome.extension.getURL
Diffstat (limited to 'ext/bg/js/api.js')
-rw-r--r--ext/bg/js/api.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/api.js b/ext/bg/js/api.js
index 93d9c155..999ea337 100644
--- a/ext/bg/js/api.js
+++ b/ext/bg/js/api.js
@@ -153,7 +153,7 @@ async function apiCommandExec(command, params) {
}
apiCommandExec.handlers = {
search: async (params) => {
- const url = chrome.extension.getURL('/bg/search.html');
+ const url = chrome.runtime.getURL('/bg/search.html');
if (!(params && params.newTab)) {
try {
const tab = await apiFindTab(1000, (url2) => (
@@ -181,7 +181,7 @@ apiCommandExec.handlers = {
chrome.runtime.openOptionsPage();
} else {
const manifest = chrome.runtime.getManifest();
- const url = chrome.extension.getURL(manifest.options_ui.page);
+ const url = chrome.runtime.getURL(manifest.options_ui.page);
chrome.tabs.create({url});
}
},