mirror of
https://github.com/yattee/yattee.git
synced 2024-11-12 17:18:22 +00:00
Fix url opening
This commit is contained in:
parent
a9e9fa3a6d
commit
160ea86298
@ -163,7 +163,9 @@ struct OpenURLHandler {
|
||||
resource
|
||||
.load()
|
||||
.onSuccess { response in
|
||||
if let channel: Channel = response.typedContent() {
|
||||
if let page: ChannelPage = response.typedContent(),
|
||||
let channel = page.channel
|
||||
{
|
||||
DispatchQueue.main.async {
|
||||
NavigationModel.shared.openChannel(
|
||||
channel,
|
||||
|
@ -110,7 +110,6 @@ struct YatteeApp: App {
|
||||
.onDisappear { player.presentingPlayer = false }
|
||||
.environment(\.managedObjectContext, persistenceController.container.viewContext)
|
||||
.environment(\.navigationStyle, .sidebar)
|
||||
|
||||
.handlesExternalEvents(preferring: Set(["player", "*"]), allowing: Set(["player", "*"]))
|
||||
}
|
||||
.handlesExternalEvents(matching: Set(["player", "*"]))
|
||||
|
Loading…
Reference in New Issue
Block a user