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

Mobile: Fixes #4033: Fixed clicking on links

This commit is contained in:
Laurent Cozic 2020-11-04 11:35:12 +00:00
parent 8dc42b1f41
commit 10cfa773ca

View File

@ -21,6 +21,8 @@ export default function useOnMessage(onCheckboxChange:Function, noteBody:string,
onJoplinLinkClick(msg);
} else if (msg.startsWith('error:')) {
console.error(`Webview injected script error: ${msg}`);
} else {
onJoplinLinkClick(msg);
}
}, [onCheckboxChange, noteBody, onMarkForDownload, onJoplinLinkClick, onResourceLongPress]);
}