Fix new audio player features not working on Safari (#14465)

Fixes #14462
master
ThibG 4 years ago committed by GitHub
parent 5faf2de938
commit 51b5bb5301
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      app/javascript/mastodon/features/audio/index.js

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

Loading…
Cancel
Save