Skip to content

Commit

Permalink
fix show full address
Browse files Browse the repository at this point in the history
  • Loading branch information
brindy committed Oct 9, 2023
1 parent 0223f8b commit 17a9ef5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DuckDuckGo/OmniBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -359,12 +359,12 @@ class OmniBar: UIView {
return
}

if appSettings.showFullSiteAddress {
textField.text = url.absoluteString
} else if let query = url.searchQuery {
if let query = url.searchQuery, !appSettings.showFullSiteAddress {
textField.text = query
} else {
} else if appSettings.showFullSiteAddress {
textField.attributedText = OmniBar.demphasisePath(forUrl: url)
} else {
textField.text = url.host?.dropping(prefix: "www.")
}
}

Expand Down

0 comments on commit 17a9ef5

Please sign in to comment.