jitsi-roomsv2/frontend/src/background/constants.ts

14 lines
493 B
TypeScript
Raw Normal View History

2023-02-07 20:31:07 +01:00
const ISPROD = window.location.protocol == "https:";
2023-04-07 16:21:15 +02:00
const JITSI_DOMAIN = "thisisnotajitsi.filefighter.de";
2023-04-09 10:36:52 +02:00
const USE_REMOTE_BACKEND = true;
const getWebsocketUrl = () => {
if (ISPROD) return "wss://" + window.location.host + "/ws"
if (USE_REMOTE_BACKEND) return "wss://" + "discord.filefighter.de/ws"
return "ws://" + "localhost:9160/ws"
}
const WEBSOCKET_URL = getWebsocketUrl();
2023-01-07 19:06:04 +01:00
2023-02-07 20:31:07 +01:00
const USER_COOKIE_NAME = "jitsi-rooms-user";
export { JITSI_DOMAIN, WEBSOCKET_URL, USER_COOKIE_NAME };