Correctly handle IRIs

This commit is contained in:
Nate Weaver 2020-07-09 02:04:01 -05:00
parent 34685328e0
commit 302ceeaffb
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ struct Browser {
/// - Note: Some browsers (specifically Chromium-derived ones) will ignore the request /// - Note: Some browsers (specifically Chromium-derived ones) will ignore the request
/// to open in the background. /// to open in the background.
static func open(_ urlString: String, inBackground: Bool) { static func open(_ urlString: String, inBackground: Bool) {
if let url = URL(string: urlString) { if let url = URL(unicodeString: urlString) {
if let defaultBrowser = defaultBrowser { if let defaultBrowser = defaultBrowser {
defaultBrowser.openURL(url, inBackground: inBackground) defaultBrowser.openURL(url, inBackground: inBackground)
} else { } else {