mirror of
https://github.com/whscullin/apple1js.git
synced 2024-11-26 17:49:44 +00:00
Fix Safari tape loading.
This commit is contained in:
parent
8a702f2da1
commit
2ef60a84a5
@ -75,7 +75,7 @@ aci.setData(window.tapes['Microchess'].tracks);
|
|||||||
// Audio Buffer Source
|
// Audio Buffer Source
|
||||||
var context;
|
var context;
|
||||||
if (typeof window.webkitAudioContext !== 'undefined') {
|
if (typeof window.webkitAudioContext !== 'undefined') {
|
||||||
context = window.webkitAudioContext;
|
context = window.webkitAudioContext();
|
||||||
} else if (typeof window.AudioContext !== 'undefined') {
|
} else if (typeof window.AudioContext !== 'undefined') {
|
||||||
context = new window.AudioContext();
|
context = new window.AudioContext();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user