From 31334ee5f57cbe186d640fbf56afc39495b79e77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20G=C5=82owacki?= Date: Fri, 5 Mar 2021 18:15:00 +0100 Subject: [PATCH] Try to resolve firefox connection issues --- src/services/DataStore.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/services/DataStore.js b/src/services/DataStore.js index d47a9279..abe4ee99 100644 --- a/src/services/DataStore.js +++ b/src/services/DataStore.js @@ -2,13 +2,17 @@ import FirebaseClient from "./Firebase"; const DB = FirebaseClient.firestore(); +let settings = { + experimentalAutoDetectLongPolling: true, +}; + if (process.env.NODE_ENV === "development") { - DB.settings({ - host: "localhost:8080", - ssl: false, - }); + settings.host = "localhost:8080"; + settings.ssl = false; } +DB.settings(settings); + const DataStore = { // Public users' profiles profiles: DB.collection("users").doc("public_profiles"),