From 7b8a3b24b34cfc66b0a7e8f934ba64553ff9798f Mon Sep 17 00:00:00 2001 From: Alex Mazanov Date: Tue, 18 Jan 2022 19:10:58 -0800 Subject: [PATCH] Handle local files URL #261 --- SwiftBar/MenuBar/MenuBarItem.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SwiftBar/MenuBar/MenuBarItem.swift b/SwiftBar/MenuBar/MenuBarItem.swift index 95649c0..96ddca3 100644 --- a/SwiftBar/MenuBar/MenuBarItem.swift +++ b/SwiftBar/MenuBar/MenuBarItem.swift @@ -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 {