*Ensure we only ever run on a search
This commit is contained in:
parent
f1cba065cb
commit
fe93f6763a
|
@ -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;
|
||||
|
|
Reference in New Issue