Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into web
  • Loading branch information
iamansuman committed Dec 20, 2023
2 parents 03ac8c4 + 0086c53 commit f6c06aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/js/script.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const DEVMODE = Boolean(location.hostname == 'localhost');
const SETTINGS = {
socketServerLocation: DEVMODE ? 'http://localhost:8082' : 'https://namaste.onrender.com/',
socketServerLocation: DEVMODE ? 'http://localhost:8082' : 'https://namaste-server.onrender.com/',
cryptoWorkerLocation: './js/Encryption/Workers/sec-v1.3-Worker.js',
};
const socket = io(SETTINGS.socketServerLocation, { autoConnect: false });
Expand Down Expand Up @@ -328,4 +328,4 @@ function endCall(fromServer=false, sendRequestToSocketID=user.currentCallRemoteS
user.currentCallRemoteSocketID = null;
toggleView([DOMElements.videoCallModal, DOMElements.videoCallModalFloatBtn]);
if (!fromServer) socket.emit('send-end-call', { socketID: sendRequestToSocketID });
}
}

0 comments on commit f6c06aa

Please sign in to comment.