mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-16 12:23:12 +00:00
chore: update extension omnibox keyword
This commit is contained in:
parent
b5d1ed0ee7
commit
c34c7a7fd4
@ -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) {
|
||||
|
@ -4,7 +4,7 @@
|
||||
"version": "0.0.1",
|
||||
"manifest_version": 3,
|
||||
"omnibox": {
|
||||
"keyword": "go"
|
||||
"keyword": "go/"
|
||||
},
|
||||
"action": {
|
||||
"default_popup": "popup.html"
|
||||
|
Loading…
x
Reference in New Issue
Block a user