onse.json())
                .then(data => {
                    if (lastStartupTime !== data.startup_time) {
                        window.location.reload(true);
                    }
                })
                .catch(error => console.error('Error checking startup time:', error));
        }

        setInterval(checkForRestart, 1000);
    </script>
</body>
</html>
