mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
Fix AudioContext detection
This commit is contained in:
parent
cb23591f70
commit
2d5dd4f0ab
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue