diff --git a/Input Source Pro/Utilities/AppKit/NSApplication.swift b/Input Source Pro/Utilities/AppKit/NSApplication.swift index 3fdef22..8e1c71d 100644 --- a/Input Source Pro/Utilities/AppKit/NSApplication.swift +++ b/Input Source Pro/Utilities/AppKit/NSApplication.swift @@ -76,7 +76,17 @@ extension NSApplication { static func isBrowserApp(_ bundleIdentifier: String?) -> Bool { guard let bundleIdentifier = bundleIdentifier else { return false } - return browserAppIdentifier.contains(bundleIdentifier) + if browserAppIdentifier.contains(bundleIdentifier) { + return true + } + + if Browser(rawValue: bundleIdentifier) != nil, + NSWorkspace.shared.urlForApplication(withBundleIdentifier: bundleIdentifier) != nil + { + return true + } + + return false } static func isBrowserInstalled(_ bundleIdentifier: String) -> Bool {