openvibers/openvibe.network Commits

openvibe.network turns on the realtime notification badge first (notificationsRealtime: true on the home page and My account; Shared 1.22.0): a new notification reaches the badge over Events realtime with a single-use ticket, polling stays the fallback

OP OpenVibers committed 26 Sept 2026 · a7b99c7f87 · 2 files, +3 −3


Changes

ddiff --git a/public/index.html b/public/index.html
iindex 9d305827..757ce639 100644
---- a/public/index.html
++++ b/public/index.html
@@@ -206,7 +206,7 @@ footer{border-top:1px solid var(--border);background:var(--bg-secondary)}
function initNavbar(user) {
if (typeof OpenVibeNavbar !== 'undefined') {
-- OpenVibeNavbar.init({ service: 'network', token: token || null, user: user || null, links: [{ label: 'My Account', href: '/my' }, { label: 'Themes', href: '/themes' }], networkLinks: 5 });
++ OpenVibeNavbar.init({ service: 'network', notificationsRealtime: true, token: token || null, user: user || null, links: [{ label: 'My Account', href: '/my' }, { label: 'Themes', href: '/themes' }], networkLinks: 5 });
}
if (user) {
document.getElementById('hero-guest-ctas').style.display = 'none';
ddiff --git a/public/my.html b/public/my.html
iindex 67ceedad..3dbdded6 100644
---- a/public/my.html
++++ b/public/my.html
@@@ -1197,7 +1197,7 @@ async function loadUser() {
applyAnonModeUI(currentUser);
loadAccounts();
loadAnonInfo();
-- OpenVibeNavbar.init({ service: 'network', token: null, user: currentUser });
++ OpenVibeNavbar.init({ service: 'network', notificationsRealtime: true, token: null, user: currentUser });
} else {
const data = await apiFetch('/api/auth/me');
currentUser = data.user;
@@@ -1214,7 +1214,7 @@ async function loadUser() {
loadRecentTools();
// Init navbar
-- OpenVibeNavbar.init({ service: 'network', token: authToken, user: currentUser });
++ OpenVibeNavbar.init({ service: 'network', notificationsRealtime: true, token: authToken, user: currentUser });
const bellMount = OpenVibeNavbar.getBellMount();
if (bellMount && window.OpenVibeNotifications && authToken) {
OpenVibeNotifications.init({ token: authToken, apiBase: API, swPath: '/openvibe-sw.js' });