Skip to content

Commit 30e4b58

Browse files
committed
Make default search engine DuckDuckGo #248
1 parent c125ec2 commit 30e4b58

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/home.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const searchUrl = localStorage.getItem("engine") || "https://www.google.com/search?q=";
1+
const searchUrl = localStorage.getItem("engine") || "https://duckduckgo.com/?q=";
22
const input = document.getElementById("search") as HTMLInputElement | null;
33

44
function isUrl(val = ""): boolean {

src/lib/tabs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ document.addEventListener("astro:page-load", () => {
33
console.log("page loaded");
44
const frame = getFrame();
55
if (frame) {
6-
frame.src = window.__uv$config.prefix + window.__uv$config.encodeUrl(sessionStorage.getItem("goUrl") || localStorage.getItem("engine") || "https://www.google.com");
6+
frame.src = window.__uv$config.prefix + window.__uv$config.encodeUrl(sessionStorage.getItem("goUrl") || localStorage.getItem("engine") || "https://duckduckgo.com/?q=");
77
} else {
88
console.error("No iFrame found");
99
}

0 commit comments

Comments
 (0)