From 2ef60a84a5285425e598fb3ccc121359f79239f6 Mon Sep 17 00:00:00 2001 From: Will Scullin Date: Thu, 9 Jul 2020 05:24:36 -0700 Subject: [PATCH] Fix Safari tape loading. --- js/apple1.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/apple1.js b/js/apple1.js index 1b32e85..55eea59 100644 --- a/js/apple1.js +++ b/js/apple1.js @@ -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(); }