[mirotak] - fix typo

This commit is contained in:
Miroslav Pejic
2026-04-01 20:45:44 +02:00
parent e5e1e99a85
commit 8ec6d686b5
+8 -2
View File
@@ -1304,13 +1304,19 @@ function countPeerConnections() {
document.addEventListener('DOMContentLoaded', function () {
initCursorLightEffect();
initClientPeer();
// Close navbar dropdowns when clicking outside
initDocumentListeners();
});
/**
* Document listeners
*/
function initDocumentListeners() {
document.addEventListener('click', (e) => {
if (!e.target.closest('.navbar-dropdown')) {
document.querySelectorAll('.navbar-dropdown-content.show').forEach((el) => el.classList.remove('show'));
}
});
});
}
/**
* Initialize cursor light effect on video container