From a383c334a2e4ccb246a4a1092b1d053ccad19bd7 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 23 Jan 2022 14:06:14 +0100 Subject: ported everything to deno! yay --- source/client/index.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'source/client/index.ts') 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" +/// + +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()) -- cgit v1.2.3-70-g09d2