Really fix Safari tape loading.

This commit is contained in:
Will Scullin 2020-07-09 05:40:53 -07:00
parent 2ef60a84a5
commit ebe3821b0f
No known key found for this signature in database
GPG Key ID: 9092A5C0A673416B

View File

@ -75,7 +75,7 @@ aci.setData(window.tapes['Microchess'].tracks);
// Audio Buffer Source
var context;
if (typeof window.webkitAudioContext !== 'undefined') {
context = window.webkitAudioContext();
context = new window.webkitAudioContext();
} else if (typeof window.AudioContext !== 'undefined') {
context = new window.AudioContext();
}