chore: update extension omnibox keyword

This commit is contained in:
Steven 2022-09-16 00:14:07 +08:00
parent b5d1ed0ee7
commit c34c7a7fd4
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -4,7 +4,7 @@
"version": "0.0.1",
"manifest_version": 3,
"omnibox": {
"keyword": "go"
"keyword": "go/"
},
"action": {
"default_popup": "popup.html"