From 58848481c9b1633b1c78845209abbb8a245fc35e Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Wed, 8 Dec 2021 17:05:44 -0800 Subject: [PATCH] IO-1551 Polling mode for unsupported browsers. --- bodyshop_translations.babel | 21 ++++++++++ client/public/firebase-messaging-sw.js | 1 - .../chat-affix/chat-affix.container.jsx | 22 ++++++----- .../chat-popup/chat-popup.component.jsx | 39 ++++++++++++------- client/src/firebase/firebase.utils.js | 9 ++++- .../pages/manage/manage.page.component.jsx | 6 ++- client/src/translations/en_us/common.json | 1 + client/src/translations/es/common.json | 1 + client/src/translations/fr/common.json | 1 + 9 files changed, 74 insertions(+), 27 deletions(-) diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel index 3c2411d57..06913c288 100644 --- a/bodyshop_translations.babel +++ b/bodyshop_translations.babel @@ -29927,6 +29927,27 @@ + + nopush + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + phonenumber false diff --git a/client/public/firebase-messaging-sw.js b/client/public/firebase-messaging-sw.js index 3bf458e19..7ee3f3d98 100644 --- a/client/public/firebase-messaging-sw.js +++ b/client/public/firebase-messaging-sw.js @@ -48,7 +48,6 @@ firebase.initializeApp(firebaseConfig); const messaging = firebase.messaging(); messaging.onBackgroundMessage(function (payload) { - console.log("FCM BG MSG", payload); // Customize notification here const channel = new BroadcastChannel("imex-sw-messages"); channel.postMessage(payload); diff --git a/client/src/components/chat-affix/chat-affix.container.jsx b/client/src/components/chat-affix/chat-affix.container.jsx index 02f7289ac..55fab18bd 100644 --- a/client/src/components/chat-affix/chat-affix.container.jsx +++ b/client/src/components/chat-affix/chat-affix.container.jsx @@ -46,11 +46,8 @@ export function ChatAffixContainer({ bodyshop, chatVisible }) {