Skip to content

Commit

Permalink
Update common.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rern committed Dec 21, 2022
1 parent a07543e commit a3e38bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions srv/http/assets/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ function banner( icon, title, message, delay ) {
<div id="bannerTitle">${ title }</div>
<div id="bannerMessage">${ message }</div>
` ).removeClass( 'hide' );
if ( delay !== -1 ) setTimeout( bannerHide, delay || 3000 );
if ( delay !== -1 ) I.timeoutbanner = setTimeout( bannerHide, delay || 3000 );
}
function bannerHide() {
if ( V.reboot || $( '#banner' ).hasClass( 'hide' ) ) return
if ( $( '#banner' ).hasClass( 'hide' ) ) return

$( '#banner' )
.addClass( 'hide' )
Expand Down Expand Up @@ -930,7 +930,7 @@ if ( ! [ 'addons', 'addons-progress', 'guide' ].includes( page ) ) {
}

delete V.reboot;
bash( [ 'autoplaystatus' ], () => banner( 'raudio', 'rAudio', 'Ready', 6000 ) );
refreshData();
loaderHide();
} else {
refreshData();
Expand Down

0 comments on commit a3e38bb

Please sign in to comment.