Fix: Prevent spurious console error when leaving Main tab

This commit is contained in:
Squidly271
2025-04-24 22:14:09 -04:00
committed by GitHub
parent d687dcec86
commit 5107f84270

View File

@@ -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>