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