1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2024-11-23 17:42:46 +01:00
TweetDuck/resources/Content/notification/setup_body_hover_class.js

13 lines
326 B
JavaScript

/**
* Adds a class to the <body> element when hovering the notification.
*/
export default function() {
document.body.addEventListener("mouseenter", function(){
document.body.classList.add("td-hover");
});
document.body.addEventListener("mouseleave", function(){
document.body.classList.remove("td-hover");
});
};