From 21b65cadea3c9cea10f08ae5cfc0e0790109d5e8 Mon Sep 17 00:00:00 2001 From: Ayushya Amitabh Date: Thu, 22 Apr 2021 17:04:51 -0400 Subject: [PATCH] v1.1.0/release --- website/src/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/src/index.js b/website/src/index.js index d568881..d377be9 100644 --- a/website/src/index.js +++ b/website/src/index.js @@ -14,10 +14,12 @@ const FIREBASE_CONFIG = { }; firebase.initializeApp(FIREBASE_CONFIG); + if (window.location.host !== "www.vaxand.me") { firebase.functions().useEmulator(window.location.host.split(":")[0], 5001); } -const fb_functions = firebase.functions(); + +const fb_functions = firebase.app().functions('us-central1'); const saveResult = fb_functions.httpsCallable("saveResultV1"); const getPastResult = fb_functions.httpsCallable("getPastResultV1"); const getStats = fb_functions.httpsCallable("getStatsV1");