mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-12 13:17:45 +02:00
web/Omnibox: show a spinner when loading
replaces the link icon with a spinner when loading the turnstile checks or processing the link
This commit is contained in:
@ -2,6 +2,8 @@
|
||||
import env from "$lib/env";
|
||||
import { onMount } from "svelte";
|
||||
|
||||
import { turnstileLoaded } from "$lib/state/turnstile";
|
||||
|
||||
let turnstileElement: HTMLElement;
|
||||
let turnstileScript: HTMLElement;
|
||||
|
||||
@ -15,6 +17,9 @@
|
||||
console.log("turnstile error code:", error);
|
||||
return true;
|
||||
},
|
||||
callback: () => {
|
||||
$turnstileLoaded = true;
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user