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