mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Desktop, Mobile: Fixes #1587: Fix internal note links
This commit is contained in:
parent
fc77419ca1
commit
685a52c2c5
@ -757,7 +757,6 @@ class NoteTextComponent extends React.Component {
|
|||||||
// When using the file:// protocol, openExternal doesn't work (does nothing) with URL-encoded paths
|
// When using the file:// protocol, openExternal doesn't work (does nothing) with URL-encoded paths
|
||||||
require('electron').shell.openExternal(urlDecode(msg));
|
require('electron').shell.openExternal(urlDecode(msg));
|
||||||
} else {
|
} else {
|
||||||
console.info('OPEN URL');
|
|
||||||
require('electron').shell.openExternal(msg);
|
require('electron').shell.openExternal(msg);
|
||||||
}
|
}
|
||||||
} else if (msg.indexOf('#') === 0) {
|
} else if (msg.indexOf('#') === 0) {
|
||||||
|
@ -23,7 +23,7 @@ function installRule(markdownIt, mdOptions, ruleOptions) {
|
|||||||
const resource = result ? result.item : null;
|
const resource = result ? result.item : null;
|
||||||
const resourceStatus = utils.resourceStatus(result);
|
const resourceStatus = utils.resourceStatus(result);
|
||||||
|
|
||||||
if (resourceStatus !== 'ready') {
|
if (result && resourceStatus !== 'ready') {
|
||||||
const icon = utils.resourceStatusFile(resourceStatus);
|
const icon = utils.resourceStatusFile(resourceStatus);
|
||||||
return '<a class="not-loaded-resource resource-status-' + resourceStatus + '" data-resource-id="' + resourceId + '">' + '<img src="data:image/svg+xml;utf8,' + htmlentities(icon) + '"/>';
|
return '<a class="not-loaded-resource resource-status-' + resourceStatus + '" data-resource-id="' + resourceId + '">' + '<img src="data:image/svg+xml;utf8,' + htmlentities(icon) + '"/>';
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user