mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-13 18:06:50 +01:00
20 lines
520 B
JavaScript
20 lines
520 B
JavaScript
// Add the mouse listeners for the above functions
|
|
function linkHover() {
|
|
window.onmouseover = function(event) {
|
|
var closestAnchor = event.target.closest('a')
|
|
if (closestAnchor) {
|
|
window.webkit.messageHandlers.mouseDidEnter.postMessage(closestAnchor.href);
|
|
}
|
|
}
|
|
window.onmouseout = function(event) {
|
|
var closestAnchor = event.target.closest('a')
|
|
if (closestAnchor) {
|
|
window.webkit.messageHandlers.mouseDidExit.postMessage(closestAnchor.href);
|
|
}
|
|
}
|
|
}
|
|
|
|
function postRenderProcessing() {
|
|
linkHover()
|
|
}
|