post-hover.js: show init_hover function globally

This commit is contained in:
Zankaria 2024-09-04 11:25:51 +02:00
parent 7d0a563dc1
commit 0df63cdfa3

View file

@ -226,5 +226,8 @@ if ((active_page === 'thread' || active_page === 'index' || active_page === 'ukk
$(document).on('new_post', function(e, post) { $(document).on('new_post', function(e, post) {
$(post).find('div.body a:not([rel="nofollow"])').each(init_hover); $(post).find('div.body a:not([rel="nofollow"])').each(init_hover);
}); });
// Must be available to `show-backlinks.js` and likely others...
window.init_hover = init_hover;
}); });
} }