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