*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,7 +203,15 @@ export default class WebEngine {
return;
}
if ("google.com" === hostname) {
if ("kernel.skynet" === hostname) {
return;
}
if (getAuthStatus().loginComplete !== true) {
return;
}
if ("google.com" !== hostname) {
return;
}
if (
!(
originalUrl.searchParams.has("client") &&
@ -212,14 +220,6 @@ export default class WebEngine {
) {
return;
}
}
if ("kernel.skynet" === hostname) {
return;
}
if (getAuthStatus().loginComplete !== true) {
return;
}
let queriedUrl = originalUrl.searchParams.get("q") as string;
let queriedHost = queriedUrl;