Skip to content

Commit

Permalink
fix: listen on window's load instead of document (#7430)
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 authored Sep 14, 2023
1 parent 413c616 commit e4e62c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const getStorageDirectoryOfProfiles = async (): Promise<string> => {

export let storageDirectoryOfProfiles = ''

document.addEventListener('load', () => {
window.addEventListener('load', () => {
getStorageDirectoryOfProfiles().then((path) => {
storageDirectoryOfProfiles = path
})
Expand Down

0 comments on commit e4e62c1

Please sign in to comment.