From b609c4b0c28b1bf49c20689ed9267e4f185cf547 Mon Sep 17 00:00:00 2001 From: djmaze Date: Tue, 10 Nov 2020 10:25:02 +0100 Subject: [PATCH] AudioContext undefined in Safari 13 Fix for https://github.com/the-djmaze/snappymail/issues/37 --- dev/Common/Audio.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/Common/Audio.js b/dev/Common/Audio.js index 77fc4258a..102d4390d 100644 --- a/dev/Common/Audio.js +++ b/dev/Common/Audio.js @@ -4,7 +4,7 @@ let notificator = null, player = null, canPlay = type => player && !!player.canPlayType(type).replace('no', ''), - audioCtx = AudioContext || window.webkitAudioContext, + audioCtx = window.AudioContext || window.webkitAudioContext, play = (url, name) => { if (player) {