v1.1.0/release

This commit is contained in:
2021-04-22 17:04:51 -04:00
parent 06b18c14cd
commit 21b65cadea
+3 -1
View File
@@ -14,10 +14,12 @@ const FIREBASE_CONFIG = {
}; };
firebase.initializeApp(FIREBASE_CONFIG); firebase.initializeApp(FIREBASE_CONFIG);
if (window.location.host !== "www.vaxand.me") { if (window.location.host !== "www.vaxand.me") {
firebase.functions().useEmulator(window.location.host.split(":")[0], 5001); 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 saveResult = fb_functions.httpsCallable("saveResultV1");
const getPastResult = fb_functions.httpsCallable("getPastResultV1"); const getPastResult = fb_functions.httpsCallable("getPastResultV1");
const getStats = fb_functions.httpsCallable("getStatsV1"); const getStats = fb_functions.httpsCallable("getStatsV1");