Skip to content

Commit 187fec2

Browse files
committed
Tidy
1 parent 5ced1ed commit 187fec2

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

src/background/requests.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,6 @@ export async function getRedirects(
103103

104104
queryText = queryText.trim();
105105

106-
// if (queryText.length === 0) {
107-
// return [];
108-
// }
109-
110106
// Cut the first bang we can find from the query text, it can be anywhere in
111107
// the string
112108
const { trigger } = opts;

src/configui/components/HelpTabPanel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ export default function HelpTabPanel() {
7373
<ListItem>
7474
<Text>
7575
Edit the bangs default URL. This is the location the bang will
76-
take you to if you dont provide a query
76+
take you to if you dont provide a query. If this is left blank, an
77+
empty query will take you to the origin of the URL(s) in the list
7778
</Text>
7879
</ListItem>
7980
<ListItem>

src/lib/config/legacy/debug.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ const oldSettings = {
1313
bang: "g",
1414
urls: ["https://www.google.com/search?q=%s"],
1515
},
16+
{
17+
bang: "ea",
18+
urls: [
19+
"https://www.amazon.com/s?k=%s",
20+
"https://www.ebay.co.uk/sch/i.html?_nkw=%s",
21+
],
22+
},
1623
{
1724
bang: "yt",
1825
urls: ["https://www.youtube.com/results?search_query=%s"],

0 commit comments

Comments
 (0)