From ebe3821b0f581c55462087847326432425ccd09b Mon Sep 17 00:00:00 2001 From: Will Scullin Date: Thu, 9 Jul 2020 05:40:53 -0700 Subject: [PATCH] Really 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 55eea59..22385a4 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 = new window.webkitAudioContext(); } else if (typeof window.AudioContext !== 'undefined') { context = new window.AudioContext(); }