diff --git a/extension/background.js b/extension/background.js index 137d4bd..8279118 100644 --- a/extension/background.js +++ b/extension/background.js @@ -19,7 +19,7 @@ const fetchShortcut = async (name) => { const urlRegex = /https?:\/\/go\/(.+)/; -chrome.tabs.onUpdated.addListener(async (_, a, tab) => { +chrome.tabs.onUpdated.addListener(async (_1, _2, tab) => { if (typeof tab.url === "string") { const matchResult = urlRegex.exec(tab.url); if (matchResult) { diff --git a/extension/manifest.json b/extension/manifest.json index 8dce49e..4dcc8d0 100644 --- a/extension/manifest.json +++ b/extension/manifest.json @@ -4,7 +4,7 @@ "version": "0.0.1", "manifest_version": 3, "omnibox": { - "keyword": "go" + "keyword": "go/" }, "action": { "default_popup": "popup.html"