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

@@ -239,9 +239,10 @@
let backendUrl;
try {
const configModule = await import('./src/js/config.js');
backendUrl = configModule.BACKEND_URL || 'https://webpush.virtonline.eu';
backendUrl = configModule.BACKEND_URL;
} catch (error) {
backendUrl = 'https://webpush.virtonline.eu';
output.textContent += '\nFailed to load backend URL.';
return;
}
const webhookUrl = `${backendUrl}/webhook/${action}`;