mirror of
https://github.com/whippyshou/mastodon
synced 2024-11-25 15:46:35 +09:00
Fix new audio player features not working on Safari (#14465)
Fixes #14462
This commit is contained in:
parent
5faf2de938
commit
51b5bb5301
@ -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…
Reference in New Issue
Block a user