diff options
author | metamuffin <metamuffin@yandex.com> | 2022-01-23 14:06:14 +0100 |
---|---|---|
committer | metamuffin <metamuffin@yandex.com> | 2022-01-23 14:06:14 +0100 |
commit | a383c334a2e4ccb246a4a1092b1d053ccad19bd7 (patch) | |
tree | c747e39e25b94944da077df0a3ea20a2465540a8 /source/client/index.ts | |
parent | 16fa95ac191287fe7f82b9f37c31342fe3b4b65a (diff) | |
download | keks-meet-a383c334a2e4ccb246a4a1092b1d053ccad19bd7.tar keks-meet-a383c334a2e4ccb246a4a1092b1d053ccad19bd7.tar.bz2 keks-meet-a383c334a2e4ccb246a4a1092b1d053ccad19bd7.tar.zst |
ported everything to deno! yay
Diffstat (limited to 'source/client/index.ts')
-rw-r--r-- | source/client/index.ts | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/source/client/index.ts b/source/client/index.ts index 313cd86..0c7e728 100644 --- a/source/client/index.ts +++ b/source/client/index.ts @@ -1,6 +1,8 @@ -import { get_query_params } from "./helper" -import { log } from "./logger" -import { Room } from "./room" +/// <reference lib="dom" /> + +import { get_query_params } from "./helper.ts" +import { log } from "./logger.ts" +import { Room } from "./room.ts" export const servers = { iceServers: [{ urls: ["stun:stun1.l.google.com:19302", "stun:stun2.l.google.com:19302"] }], @@ -13,14 +15,15 @@ export interface User { } -export var parameters = get_query_params() +export const parameters = get_query_params() window.onload = () => main() -export async function main() { +export function main() { + log("*", "starting up") if (window.location.pathname.startsWith("/room/")) { const room_name = window.location.pathname.substr("/room/".length) - let room = new Room(room_name) + const room = new Room(room_name) document.body.append(room.el) } else { document.body.append(create_start_screen()) |