Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Fix link clicks on macOS
Browse files Browse the repository at this point in the history
Auditors: @diracdeltas

Regressed with the mailto change
  • Loading branch information
bbondy committed Oct 6, 2016
1 parent 9d92355 commit 89e849a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/cmdLine.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const focusOrOpenWindow = function (url) {

const isProtocolHandled = (protocol) => {
protocol = (protocol || '').split(':')[0]
return navigatableTypes.includes(protocol) ||
return navigatableTypes.includes(`${protocol}:`) ||
electron.session.defaultSession.protocol.isNavigatorProtocolHandled(protocol)
}

Expand Down

1 comment on commit 89e849a

@diracdeltas
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

Please sign in to comment.