mirror of
https://github.com/Nezumi-2711/cloudflare-gateway-pihole-scripts.git
synced 2026-09-22 13:38:37 +00:00
Fix webhook validity checking logic
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@ export async function notifyWebhook(msg) {
|
||||
// Check if the webhook URL exists
|
||||
const webhook_url = process.env.DISCORD_WEBHOOK_URL;
|
||||
|
||||
if (webhook_url || !webhook_url.startsWith('http')) {
|
||||
if (webhook_url && webhook_url.startsWith('http')) {
|
||||
// Send the message to the webhook
|
||||
await sendMessageToWebhook(webhook_url, `CGPS: ${msg}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user