mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-23 18:53:36 +02:00
parent
7fa278f875
commit
c499473467
@ -202,6 +202,8 @@ document.addEventListener('click', function(event) {
|
|||||||
if (webviewLib.handleInternalLink(event, anchor)) return;
|
if (webviewLib.handleInternalLink(event, anchor)) return;
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
if (anchor.getAttribute('href')) webviewLib.options_.postMessage(anchor.getAttribute('href'));
|
if (anchor.getAttribute('href')) webviewLib.options_.postMessage(anchor.getAttribute('href'));
|
||||||
|
// Depending on the chart type, the generated SVG contains an anchor element with xlink:href attribute.
|
||||||
|
if (anchor.getAttribute('xlink:href')) webviewLib.options_.postMessage(anchor.getAttribute('xlink:href'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,6 +104,8 @@ document.addEventListener('click', function(event) {
|
|||||||
if (webviewLib.handleInternalLink(event, anchor)) return;
|
if (webviewLib.handleInternalLink(event, anchor)) return;
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
if (anchor.getAttribute('href')) webviewLib.options_.postMessage(anchor.getAttribute('href'));
|
if (anchor.getAttribute('href')) webviewLib.options_.postMessage(anchor.getAttribute('href'));
|
||||||
|
// Depending on the chart type, the generated SVG contains an anchor element with xlink:href attribute.
|
||||||
|
if (anchor.getAttribute('xlink:href')) webviewLib.options_.postMessage(anchor.getAttribute('xlink:href'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user