Fix Safari tape loading.

This commit is contained in:
Will Scullin 2020-07-09 05:24:36 -07:00
parent 8a702f2da1
commit 2ef60a84a5
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 = window.webkitAudioContext();
} else if (typeof window.AudioContext !== 'undefined') {
context = new window.AudioContext();
}