Skip to content

Commit

Permalink
Fix issue loading query after memory warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Bunn committed Dec 19, 2024
1 parent 1472616 commit 9c519a5
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,12 @@ extension AIChatViewController {
// MARK: - Public functions
extension AIChatViewController {
public func loadQuery(_ query: URLQueryItem) {
webViewController?.loadQuery(query)
}
// Ensure the webViewController is added before loading the query
if webViewController == nil {
addWebViewController()
}
webViewController?.loadQuery(query)
}
}

// MARK: - Views Setup
Expand Down

0 comments on commit 9c519a5

Please sign in to comment.