Skip to content

Commit

Permalink
mailto: links in XCreds menu #282
Browse files Browse the repository at this point in the history
  • Loading branch information
twocanoes committed Jan 11, 2025
1 parent 9b8d90b commit 934aacf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XCreds/StatusMenuController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class StatusMenuController: NSObject, NSMenuItemValidation {

let pathString = menuItemInfo.path

if pathString.hasPrefix("http"), let url = URL(string: pathString){
if pathString.hasPrefix("http") || pathString.hasPrefix("mailto"), let url = URL(string: pathString){

NSWorkspace.shared.open(url)

Expand Down
Binary file not shown.

0 comments on commit 934aacf

Please sign in to comment.