Skip to content

Commit

Permalink
Handle local files URL #261
Browse files Browse the repository at this point in the history
  • Loading branch information
melonamin committed Jan 19, 2022
1 parent 15ffdbb commit 7b8a3b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SwiftBar/MenuBar/MenuBarItem.swift
Expand Up @@ -695,7 +695,7 @@ extension MenubarItem {
}
}

if let href = params.href, let url = URL(string: href) {
if let href = params.href, case let url = URL(string: href) ?? URL(fileURLWithPath: href), url.absoluteString != "." {
if params.webView {
showWebPopover(url: url, widht: params.webViewWidth, height: params.webViewHeight)
} else {
Expand Down

0 comments on commit 7b8a3b2

Please sign in to comment.