summaryrefslogtreecommitdiff
path: root/HutchWidgetExtension/ContributionGraphWidget.swift
diff options
context:
space:
mode:
Diffstat (limited to 'HutchWidgetExtension/ContributionGraphWidget.swift')
-rw-r--r--HutchWidgetExtension/ContributionGraphWidget.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/HutchWidgetExtension/ContributionGraphWidget.swift b/HutchWidgetExtension/ContributionGraphWidget.swift
index 4245230..2fc07f2 100644
--- a/HutchWidgetExtension/ContributionGraphWidget.swift
+++ b/HutchWidgetExtension/ContributionGraphWidget.swift
@@ -112,7 +112,7 @@ private struct ContributionGraphWidgetView: View {
graphView
}
}
- .widgetURL(URL(string: "hutch://home"))
+ .widgetURL(HutchDeepLinkURL.home)
.containerBackground(for: .widget) {
Color(.systemBackground)
}
@@ -235,7 +235,7 @@ private enum ContributionGraphSizing {
}
private struct ContributionGraphWidgetService {
- private let baseURL = URL(string: "https://hutch-stats.zerolabs.sh")!
+ private let baseURL = HutchStatsAPI.defaultBaseURL
func fetchCalendar(actor: String) async throws -> ContributionGraphResponse {
guard var components = URLComponents(url: baseURL, resolvingAgainstBaseURL: false) else {