Skip to content

Commit dfba37e

Browse files
committed
Remove linux audio load fix
1 parent bed38b9 commit dfba37e

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

gui/src/sounds/sounds.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ function createAudio(path: string): HTMLAudioElement {
9797
export function restartAndPlay(audio: HTMLAudioElement | null, volume: number) {
9898
if (!audio) return;
9999
try {
100-
audio.load(); // LINUX: Solves wierd bug where webkit would unload sounds wierdly and make the sounds not play anymore
101-
102100
audio.volume = Math.min(1, Math.pow(volume, Math.E) + 0.05);
103101
audio.currentTime = 0;
104102
const playPromise = audio.play();

0 commit comments

Comments
 (0)