From 760ca374cedbd1c4686c51ef8e172face7a205fe Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Sat, 26 Sep 2020 19:47:51 -0600 Subject: [PATCH] Fall back to webkitAudioContext if necessary, sigh --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index ada6025..414afb8 100644 --- a/js/main.js +++ b/js/main.js @@ -215,7 +215,7 @@ const OBITUARIES = { // Helper class used to let the game play sounds without knowing too much about the Player class SFXPlayer { constructor() { - this.ctx = new window.AudioContext; + this.ctx = new (window.AudioContext || window.webkitAudioContext); // come the fuck on, safari this.player_x = null; this.player_y = null; this.sounds = {};