Screen Wake Lock
This commit is contained in:
@@ -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}`;
|
||||
|
||||
Reference in New Issue
Block a user