mirror of
https://github.com/d07RiV/diabloweb.git
synced 2026-06-03 21:41:38 +00:00
fix sound not playing in Safari
Safari requires context.resume() to start playing sound
This commit is contained in:
committed by
Anders Jenbo
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();
|
||||
|
||||
Reference in New Issue
Block a user