Skip to content

Commit

Permalink
Merge branch 'jacek/7.91.0-hotfix' into hotfix/7.91.1-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jaceklyp committed Oct 2, 2023
2 parents 17af80e + 1d8ca51 commit 05c95d6
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions DuckDuckGo/AppDelegate+AppDeepLinks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ extension AppDelegate {
mainViewController.newTab(reuseExisting: true, allowingKeyboard: false)

case .quickLink:
handleQuickLink(url, mainViewController)
let query = AppDeepLinkSchemes.query(fromQuickLink: url)
mainViewController.loadQueryInNewTab(query, reuseExisting: true)

case .addFavorite:
mainViewController.startAddFavoriteFlow()
Expand Down Expand Up @@ -64,14 +65,4 @@ extension AppDelegate {

return true
}

private func handleQuickLink(_ url: URL, _ mainViewController: MainViewController) {
let query = AppDeepLinkSchemes.query(fromQuickLink: url)
if let url = URL(string: query) {
mainViewController.loadUrlInNewTab(url, reuseExisting: true, inheritedAttribution: nil)
} else {
mainViewController.loadQueryInNewTab(query, reuseExisting: true)
}
}

}

0 comments on commit 05c95d6

Please sign in to comment.