mirror of
https://github.com/yattee/yattee.git
synced 2026-05-13 19:05:03 +00:00
Rename YouTube Enhancements settings to Integrations
Also swap the icon to puzzlepiece.extension, which better conveys that this section houses third-party service hookups (SponsorBlock, Return YouTube Dislike, DeArrow, short-link resolution) rather than being YouTube-specific. Hide the Resolve Short Links toggle on tvOS — there's no way to tap inline description links or reach a system browser there — and tighten the openInSystemBrowser platform guards so the iOS-only UIApplication path isn't compiled on tvOS.
This commit is contained in:
@@ -96,9 +96,9 @@ struct ResolvedLinkPromptsModifier: ViewModifier {
|
||||
|
||||
@MainActor
|
||||
private func openInSystemBrowser(_ url: URL) {
|
||||
#if canImport(UIKit) && !os(watchOS)
|
||||
#if os(iOS)
|
||||
UIApplication.shared.open(url)
|
||||
#elseif canImport(AppKit)
|
||||
#elseif os(macOS)
|
||||
NSWorkspace.shared.open(url)
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user