*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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ("google.com" === hostname) {
|
|
||||||
if (
|
|
||||||
!(
|
|
||||||
originalUrl.searchParams.has("client") &&
|
|
||||||
originalUrl.searchParams.get("client")?.includes("firefox")
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ("kernel.skynet" === hostname) {
|
if ("kernel.skynet" === hostname) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (getAuthStatus().loginComplete !== true) {
|
if (getAuthStatus().loginComplete !== true) {
|
||||||
return;
|
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 queriedUrl = originalUrl.searchParams.get("q") as string;
|
||||||
let queriedHost = queriedUrl;
|
let queriedHost = queriedUrl;
|
||||||
|
|
Reference in New Issue