You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
This commit is contained in:
@ -85,8 +85,8 @@ export default function useMessageHandler(scrollWhenReady: any, setScrollWhenRea
|
|||||||
}
|
}
|
||||||
} else if (urlUtils.urlProtocol(msg)) {
|
} else if (urlUtils.urlProtocol(msg)) {
|
||||||
if (msg.indexOf('file://') === 0) {
|
if (msg.indexOf('file://') === 0) {
|
||||||
// When using the file:// protocol, openExternal doesn't work (does nothing) with URL-encoded paths
|
// When using the file:// protocol, openPath doesn't work (does nothing) with URL-encoded paths
|
||||||
require('electron').shell.openExternal(urlDecode(msg));
|
require('electron').shell.openPath(urlDecode(msg));
|
||||||
} else {
|
} else {
|
||||||
require('electron').shell.openExternal(msg);
|
require('electron').shell.openExternal(msg);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user