SoundBuffer: Fix AudioContext on Safari

This commit is contained in:
LoveEevee 2018-10-06 21:33:42 +03:00
parent b6d9f29abc
commit 8932160077

View File

@ -1,5 +1,6 @@
class SoundBuffer{
constructor(){
var AudioContext = window.AudioContext || window.webkitAudioContext
this.context = new AudioContext()
pageEvents.once(window, "click").then(() => {
if(this.context.state == "suspended"){