[Glitch] Fix new audio player features not working on Safari

Port 51b5bb5301 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
pull/1392/head
ThibG 2020-08-02 11:20:17 +02:00 committed by Thibaut Girka
parent 8f3295f212
commit de7ba22c45
1 changed files with 3 additions and 2 deletions

View File

@ -254,6 +254,7 @@ class Audio extends React.PureComponent {
}
_initAudioContext () {
const AudioContext = window.AudioContext || window.webkitAudioContext;
const context = new AudioContext();
const source = context.createMediaElementSource(this.audio);