Correctly handle IRIs

This commit is contained in:
Nate Weaver committed 2020-07-29 15:42:11 -05:00
1 parent 1f9dfb80e2
commit 5630a4eba4
1 file changed
+1 -1
+1 -1
View File
@@ -43,7 +43,7 @@ struct Browser {
/// - Note: Some browsers (specifically Chromium-derived ones) will ignore the request
/// to open in the background.
static func open(_ urlString: String, inBackground: Bool) {
if let url = URL(string: urlString) {
if let url = URL(unicodeString: urlString) {
if let defaultBrowser = defaultBrowser {
defaultBrowser.openURL(url, inBackground: inBackground)
} else {