Use configuration check as background check

This commit is contained in:
bergware
2021-08-22 22:00:24 +02:00
parent 10a11c38b3
commit 69cdd8de6f
2 changed files with 6 additions and 8 deletions
@@ -371,7 +371,7 @@ $(function() {
for (var i=0,notice; notice=notices[i]; i++) addBannerWarning("<i class='fa fa-warning' style='float:initial;'></i> "+notice,false,true);
});
// check for flash offline / corrupted.
$.post('/webGui/include/Report.php',{cmd:'sha256'},function(check){
$.post('/webGui/include/Report.php',{cmd:'config'},function(check){
if (check>0) addBannerWarning("<?=_('Your flash drive is corrupted or offline').'. '._('Post your diagnostics in the forum for help').'.'?> <a target='_blank' href='https://wiki.unraid.net/Manual/Changing_The_Flash_Device'><?=_('See also here')?></a>");
});
});