Skip to content

Commit

Permalink
Send to multiple webhooks with , delimited URL instead of @
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatStella7922 committed Feb 11, 2024
1 parent 08669c9 commit 9bd5052
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file not shown.
2 changes: 1 addition & 1 deletion dcbattwebhook-swift/SendBatteryInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func sendInfo(isCurrentlyCharging: Bool, didGetPluggedIn: Bool, didGetUnplugged:


// Scuffed multi-webhook functionality until I properly implement this in Battery Webhook's rewrite
let webhookUrls = userWebhookUrl.split(separator: "@")
let webhookUrls = userWebhookUrl.split(separator: ",")
if (webhookUrls.count == 1) {
NSLog("Sending to one webhook, because that's normal")
// our actual post, just once
Expand Down

0 comments on commit 9bd5052

Please sign in to comment.