From 51835942a2d16019be5f9e7a0a55ec59a1013b85 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Mon, 22 Feb 2021 15:45:05 +0200 Subject: [PATCH] Fix for audio being sharshared between tabs --- js/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/main.js b/js/main.js index ca79634..d2aac19 100644 --- a/js/main.js +++ b/js/main.js @@ -245,6 +245,7 @@ $(document).ready(function(){ if(result.hasOwnProperty('verse') && result.verse && now <= result.verse.timeout && !reload){ setVerse(result.verse.data); + audio = new Audio(result.verse.audio); if(syncResult.hasOwnProperty('show_translation') && syncResult.show_translation && syncResult.hasOwnProperty('translation_identifier') && syncResult.translation_identifier && syncResult.translation_identifier){