fix: source content loading status

This commit is contained in:
DIYgod 2024-09-30 21:13:02 +08:00
parent 447803488c
commit 6d765044fb
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ export const SourceContentView = ({ src }: { src: string }) => {
const handleDidStopLoading = () => setLoading(false)
// See https://www.electronjs.org/docs/latest/api/webview-tag#example
webview.addEventListener("did-start-loading", handleDidStopLoading, {
webview.addEventListener("did-stop-loading", handleDidStopLoading, {
signal: abortController.signal,
})