Skip to content

Commit

Permalink
Fix for audio being sharshared between tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
shahednasser committed Feb 22, 2021
1 parent 8a2dd15 commit 5183594
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 5183594

Please sign in to comment.