Fix AudioContext detection

This commit is contained in:
An Phan 2016-02-10 08:22:39 +07:00
parent cb23591f70
commit 2d5dd4f0ab

View file

@ -69,6 +69,11 @@
var settings = equalizerStore.get();
var AudioContext = window.AudioContext || window.webkitAudioContext || false;
if (!AudioContext) {
return;
}
var context = new AudioContext();
this.preampGainNode = context.createGain();