From 960d2af7488be12bab08a47cfa23ca023518fff2 Mon Sep 17 00:00:00 2001 From: Ayushya Amitabh Date: Sat, 25 Jul 2020 20:15:09 -0400 Subject: [PATCH] v1.5.2/remove localhost api --- app/src/Api.js | 4 +--- functions/modules/createRoom.js | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/Api.js b/app/src/Api.js index 16a7db6..30695d7 100644 --- a/app/src/Api.js +++ b/app/src/Api.js @@ -18,9 +18,7 @@ HBO Now and HBO Max logos are trademark and intellectual property of WarnerMedia ************************************************************************/ /*global chrome*/ -const API_HOST = window.location.href.startsWith('http://localhost') - ? 'http://localhost:5000/watch-party-crx/us-central1/widgets' - : 'https://us-central1-watch-party-crx.cloudfunctions.net/widgets2'; +const API_HOST = 'https://us-central1-watch-party-crx.cloudfunctions.net/widgets2'; export const PLAYER_STATUS = { PLAYING: 'PLAYING', diff --git a/functions/modules/createRoom.js b/functions/modules/createRoom.js index d8f4cfc..257dd16 100644 --- a/functions/modules/createRoom.js +++ b/functions/modules/createRoom.js @@ -54,7 +54,7 @@ module.exports = async (req, res) => { .add({ uid: '', name: '', - text: `Voice calls are unavailable temporarily.`, + text: `Voice calls are unavailable temporarily. Voice calls will be back within 12 hours.`, time: new Date(), }) .catch((err) => {