We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bed38b9 commit dfba37eCopy full SHA for dfba37e
1 file changed
gui/src/sounds/sounds.ts
@@ -97,8 +97,6 @@ function createAudio(path: string): HTMLAudioElement {
97
export function restartAndPlay(audio: HTMLAudioElement | null, volume: number) {
98
if (!audio) return;
99
try {
100
- audio.load(); // LINUX: Solves wierd bug where webkit would unload sounds wierdly and make the sounds not play anymore
101
-
102
audio.volume = Math.min(1, Math.pow(volume, Math.E) + 0.05);
103
audio.currentTime = 0;
104
const playPromise = audio.play();
0 commit comments