-
-
Save jakearchibald/131d7101b134b6f7bed1d8320e4da599 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!window.AudioContext && window.webkitAudioContext) { | |
const oldFunc = webkitAudioContext.prototype.decodeAudioData; | |
webkitAudioContext.prototype.decodeAudioData = function(arraybuffer) { | |
return new Promise((resolve, reject) => { | |
oldFunc.call(this, arraybuffer, resolve, reject); | |
}); | |
} | |
} |
nevermind it was just my github breaking the spaces 😅
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ty for polyfill, here it is with whitespace: