Skip to content

Commit

Permalink
chore: clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
lawvs committed Sep 28, 2024
1 parent 295295c commit badee90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/renderer/src/atoms/source-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const useSourceContentModal = () => {
resizeable: true,
clickOutsideToDismiss: true,
// The number was picked arbitrarily
resizeDefaultSize: { width: 900, height: 900 },
resizeDefaultSize: { width: 900, height: 700 },
})
},
[present],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const SourceContentView = ({ src }: { src: string }) => {
const handleDidStartLoading = () => setLoading(true)
const handleDidStopLoading = () => setLoading(false)

// See https://www.electronjs.org/docs/latest/api/webview-tag#example
webview.addEventListener("did-start-loading", handleDidStartLoading, {
signal: abortController.signal,
})
Expand Down

0 comments on commit badee90

Please sign in to comment.