diff options
author | Mario <mario@mariovavti.com> | 2024-12-21 12:07:31 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-12-21 12:07:31 +0000 |
commit | b1f2f67a047e1c595ff2a2a7b4a571c72fdcde6d (patch) | |
tree | 2d975d09e81f110cb61a0d2f685ef29ef0e2a30b /view/tpl | |
parent | bd10c1e40af899b4387c72d484444f85c7e8d654 (diff) | |
download | volse-hubzilla-b1f2f67a047e1c595ff2a2a7b4a571c72fdcde6d.tar.gz volse-hubzilla-b1f2f67a047e1c595ff2a2a7b4a571c72fdcde6d.tar.bz2 volse-hubzilla-b1f2f67a047e1c595ff2a2a7b4a571c72fdcde6d.zip |
better pubs notofication fiy and also fix a javascript error and remove last bit of jquery from notifications
Diffstat (limited to 'view/tpl')
-rw-r--r-- | view/tpl/notifications_widget.tpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl index 3347378b5..f884ff1f6 100644 --- a/view/tpl/notifications_widget.tpl +++ b/view/tpl/notifications_widget.tpl @@ -7,9 +7,9 @@ var sse_fallback_interval; var sse_sys_only = {{$sys_only}}; - $(document).ready(function() { + document.addEventListener("DOMContentLoaded", function() { let notificationsWrapper = document.getElementById('notifications_wrapper'); - let notificationsParent = notificationsWrapper.parentElement.id; + let notificationsParent = notificationsWrapper ? notificationsWrapper.parentElement.id : null; let notificationsBtn = document.querySelector('.notifications-btn'); // Event listener for notifications button |