1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-11 18:24:43 +02:00

Desktop: Regression: Fixed opening links

This commit is contained in:
Laurent Cozic 2020-10-17 13:56:41 +01:00
parent 0488c5c4cb
commit 7e78d7716b

View File

@ -74,6 +74,8 @@ function installRule(markdownIt, mdOptions, ruleOptions) {
const touchEnd = `if (!!t) {clearTimeout(t); t=null; ${onClick};}`;
js = `ontouchstart='${touchStart}' ontouchend='${touchEnd}'`;
} else {
js = `onclick='${js}'`;
}
if (hrefAttr.indexOf('#') === 0 && href.indexOf('#') === 0) js = ''; // If it's an internal anchor, don't add any JS since the webview is going to handle navigating to the right place