[Glitch] Fix new audio player features not working on Safari
Port 1f34bd4ff7 to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
			
			
This commit is contained in:
		
							parent
							
								
									3ddc3ce6ca
								
							
						
					
					
						commit
						3ee1ac54d2
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -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); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue