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\/(.+)/; const urlRegex = /https?:\/\/go\/(.+)/;
chrome.tabs.onUpdated.addListener(async (_, a, tab) => { chrome.tabs.onUpdated.addListener(async (_1, _2, tab) => {
if (typeof tab.url === "string") { if (typeof tab.url === "string") {
const matchResult = urlRegex.exec(tab.url); const matchResult = urlRegex.exec(tab.url);
if (matchResult) { if (matchResult) {

View File

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