*Ensure we only ever run on a search

This commit is contained in:
Derrick Hammer 2022-08-14 14:55:22 -04:00
parent f1cba065cb
commit fe93f6763a
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 11 additions and 11 deletions

View File

@ -203,23 +203,23 @@ export default class WebEngine {
return;
}
if ("google.com" === hostname) {
if (
!(
originalUrl.searchParams.has("client") &&
originalUrl.searchParams.get("client")?.includes("firefox")
)
) {
return;
}
}
if ("kernel.skynet" === hostname) {
return;
}
if (getAuthStatus().loginComplete !== true) {
return;
}
if ("google.com" !== hostname) {
return;
}
if (
!(
originalUrl.searchParams.has("client") &&
originalUrl.searchParams.get("client")?.includes("firefox")
)
) {
return;
}
let queriedUrl = originalUrl.searchParams.get("q") as string;
let queriedHost = queriedUrl;