mirror of
https://github.com/d07RiV/diabloweb.git
synced 2025-05-11 13:57:21 +00:00
fix sound not playing in Safari
Safari requires context.resume() to start playing sound
This commit is contained in:
parent
a99b216614
commit
c61ef19c54
@ -25,6 +25,7 @@ export default function init_sound() {
|
||||
let context = null;
|
||||
try {
|
||||
context = new AudioContext();
|
||||
context.resume();
|
||||
} catch (e) {
|
||||
}
|
||||
const sounds = new Map();
|
||||
|
Loading…
x
Reference in New Issue
Block a user