fix: update registration success message and change reboot to page reload

This commit is contained in:
Manuel Weiser committed 2026-03-09 16:25:44 +01:00
1 parent 1c19413970
commit a5d9902149
1 file changed
+2 -2
+2 -2
View File
@@ -92,9 +92,9 @@
.then(response => response.json())
.then(data => {
if (data.success) {
statusMessage.textContent = 'Registration successful! Rebooting...';
statusMessage.textContent = 'Registration successful!';
statusMessage.style.color = 'var(--success-text)';
setTimeout(() => fetch('/reboot'), 2000);
setTimeout(() => location.reload(), 2000);
} else {
statusMessage.textContent = 'Registration failed. Please check your code and URL.';
statusMessage.style.color = 'var(--error-text)';