Skip to content

Commit

Permalink
Add https prefix if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
afterxleep committed Oct 27, 2023
1 parent 97a3512 commit a606d26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions DuckDuckGo/Preferences/Model/StartupPreferences.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ final class StartupPreferences: ObservableObject {

@Published var customHomePageURL: String {
didSet {
if !customHomePageURL.starts(with: "http") {
customHomePageURL = "https://" + customHomePageURL
}
persistor.customHomePageURL = customHomePageURL
}
}
Expand Down

0 comments on commit a606d26

Please sign in to comment.