mirror of
https://github.com/searxng/searxng.git
synced 2026-05-18 08:54:30 +02:00
[upd] web-client (simple): Bump the group (#5874)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
@@ -190,9 +190,7 @@ const highlightResult =
|
||||
|
||||
let next: HTMLElement | undefined;
|
||||
|
||||
if (typeof effectiveWhich !== "string") {
|
||||
next = effectiveWhich;
|
||||
} else {
|
||||
if (typeof effectiveWhich === "string") {
|
||||
switch (effectiveWhich) {
|
||||
case "visible": {
|
||||
const top = document.documentElement.scrollTop || document.body.scrollTop;
|
||||
@@ -222,6 +220,8 @@ const highlightResult =
|
||||
default:
|
||||
[next] = results;
|
||||
}
|
||||
} else {
|
||||
next = effectiveWhich;
|
||||
}
|
||||
|
||||
if (next) {
|
||||
|
||||
@@ -123,10 +123,10 @@ export const ready = (callback: () => void, options?: ReadyOptions): void => {
|
||||
}
|
||||
}
|
||||
|
||||
if (document.readyState !== "loading") {
|
||||
callback();
|
||||
} else {
|
||||
if (document.readyState === "loading") {
|
||||
listen("DOMContentLoaded", document, callback, { once: true });
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user