Skip to content

Commit 572f887

Browse files
committed
refactor: globalThis to window
Signed-off-by: Adam Setch <[email protected]>
1 parent 730e925 commit 572f887

File tree

1 file changed

+1
-1
lines changed
  • src/renderer/utils/notifications

1 file changed

+1
-1
lines changed

src/renderer/utils/notifications/sound.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const MAXIMUM_VOLUME_PERCENTAGE = 100 as Percentage;
55
const VOLUME_STEP = 10 as Percentage;
66

77
export async function raiseSoundNotification(volume: Percentage) {
8-
const path = await globalThis.gitify.notificationSoundPath();
8+
const path = await window.gitify.notificationSoundPath();
99

1010
const audio = new Audio(path);
1111
audio.volume = volumePercentageToLevel(volume);

0 commit comments

Comments
 (0)