From a4406dad58865e1522be96145e1fd8e63eb772e9 Mon Sep 17 00:00:00 2001 From: Joao Santos Date: Wed, 13 Mar 2024 14:32:01 +0000 Subject: [PATCH] bug fix --- public/full.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/full.js b/public/full.js index 77e8fb0..343e9ac 100644 --- a/public/full.js +++ b/public/full.js @@ -142,7 +142,7 @@ async function enablePushNotifications() { deviceType: 'Android', // Use Android w/ Firebase on the web deviceToken: token, }) - client.online({pushNotification: __incomingCallNotification}) + client.online({incomingCallHandlers:{pushNotification: __incomingCallNotification}}) pnSecretKey = push_notification_key console.log('pnSecretKey: ', pnSecretKey) btnRegister.classList.add('d-none') @@ -544,7 +544,7 @@ window.toggleAvaliable = async () => { } if(isOn) { - window.__client.online({all: __incomingCallNotification}) + window.__client.online({incomingCallHandlers: {all: __incomingCallNotification}}) } else { window.__client.offline() }