Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix #8013: Fix Playlist Crash on iPad due to invalid Scene (#8162)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon-T authored and kylehickinson committed Sep 27, 2023
1 parent 6b03a95 commit a9d5dbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ extension PlaylistListViewController {
}
}

let items = try await PlaylistSharedFolderNetwork.fetchMediaItemInfo(item: model, viewForInvisibleWebView: self.view)
let items = try await PlaylistSharedFolderNetwork.fetchMediaItemInfo(item: model, viewForInvisibleWebView: self.playerView.window ?? self.playerView.superview ?? self.playerView)
try Task.checkCancellation()

try folder.playlistItems?.forEach({ playlistItem in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ class PlaylistWebLoader: UIView {

guard let webView = tab.webView,
let browserViewController = self.currentScene?.browserViewController else {
continuation.resume(returning: nil)
self.handler?(nil)
return
}

Expand Down

0 comments on commit a9d5dbb

Please sign in to comment.