diff options
author | metamuffin <metamuffin@yandex.com> | 2022-01-23 16:34:57 +0100 |
---|---|---|
committer | metamuffin <metamuffin@yandex.com> | 2022-01-23 16:34:57 +0100 |
commit | 37fdcd78ba9b6bfc4db1369485129e160bb5f67a (patch) | |
tree | c976269a40ab32f00433320ad2cd909ac92e0d67 /source/client/index.ts | |
parent | be747eff67244a01cc6faab3bfb1b8731d146335 (diff) | |
download | keks-meet-37fdcd78ba9b6bfc4db1369485129e160bb5f67a.tar keks-meet-37fdcd78ba9b6bfc4db1369485129e160bb5f67a.tar.bz2 keks-meet-37fdcd78ba9b6bfc4db1369485129e160bb5f67a.tar.zst |
refactor part 2
Diffstat (limited to 'source/client/index.ts')
-rw-r--r-- | source/client/index.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/client/index.ts b/source/client/index.ts index 85943eb..16118a6 100644 --- a/source/client/index.ts +++ b/source/client/index.ts @@ -4,7 +4,7 @@ import { get_query_params } from "./helper.ts" import { log } from "./logger.ts" import { Room } from "./room.ts" -export const servers = { +export const servers: RTCConfiguration = { iceServers: [{ urls: ["stun:stun1.l.google.com:19302", "stun:stun2.l.google.com:19302"] }], iceCandidatePoolSize: 10, } @@ -18,10 +18,10 @@ export const parameters = get_query_params() window.onload = () => main() -export function main() { +export function main() { log("*", "starting up") if (window.location.pathname.startsWith("/room/")) { - const room_name = window.location.pathname.substr("/room/".length) + const room_name = window.location.pathname.substring("/room/".length) const room = new Room(room_name) document.body.append(room.el) } else { |