Skip to content

Commit

Permalink
[FIX] Dashboard last block updates if sounds are globally disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSerapher committed May 25, 2018
1 parent bbe7ac1 commit 3a14e9f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templates/bootstrap/dashboard/js/api.tpl
Expand Up @@ -193,9 +193,15 @@ $(document).ready(function(){
return;
}
if (blocks[0].height > lastBlock) {
{/literal}
{if $GLOBAL.website.blockfindersound.enabled|default:"1"}
{literal}
if(canCreateSoundJS) {
createjs.Sound.play('ding');
}
{/literal}
{/if}
{literal}
lastBlock = blocks[0].height;
var table_content = '<tbody id="b-blocks">';
for (index = 0; index < blocks.length; ++index) {
Expand Down

0 comments on commit 3a14e9f

Please sign in to comment.