mirror of
https://github.com/unraid/webgui.git
synced 2026-01-06 09:39:58 -06:00
Fix: Prevent spurious console error when leaving Main tab
This commit is contained in:
@@ -466,11 +466,11 @@ function formatWarning(val) {
|
||||
|
||||
window.onunload = function(){
|
||||
<?if (_var($var,'fsState')=='Started'):?>
|
||||
mymonitor.stop();
|
||||
devices.stop();
|
||||
try {mymonitor.stop();} catch(e) {}
|
||||
try {devices.stop();} catch(e) {}
|
||||
<?endif;?>
|
||||
<?if ($spot==0):?>
|
||||
paritymonitor.stop();
|
||||
try {paritymonitor.stop();} catch(e) {}
|
||||
<?endif;?>
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user