mirror of
https://github.com/unraid/webgui.git
synced 2026-02-27 04:41:20 -06:00
Merge pull request #2171 from Squidly271/patch-77
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