Screen Wake Lock

This commit is contained in:
cpu
2025-03-30 23:46:13 +02:00
parent 5ff0b07d96
commit 7d609a2554
5 changed files with 186 additions and 10 deletions

View File

@@ -214,9 +214,10 @@
let backendUrl;
try {
const configModule = await import('/js/config.js');
backendUrl = configModule.BACKEND_URL || 'https://webpush.virtonline.eu';
backendUrl = configModule.BACKEND_URL;
} catch (error) {
backendUrl = 'https://webpush.virtonline.eu';
output.textContent = 'Failed to load backend URL. Please check configuration.\n';
return;
}
const webhookUrl = `${backendUrl}/webhook/${action}`;
@@ -279,4 +280,4 @@
</div>
</footer>
</body>
</html>
</html>