POC for firebase peer discovery

This commit is contained in:
CoolElectronics 2023-08-10 21:28:15 -04:00
parent 68d5601c3c
commit 091339a8a0
No known key found for this signature in database
GPG key ID: F63593D168636C50
9 changed files with 6839 additions and 183 deletions

View file

@ -3,8 +3,9 @@ import { h, render } from 'preact'
import 'preact/devtools';
import App from "./App";
const container = document.getElementById("app") as HTMLElement;
let app = <App />;
console.log(app);
render(<App />, container);
window.addEventListener("load", () => {
const container = document.getElementById("app") as HTMLElement;
let app = <App />;
console.log(app);
render(<App />, container);
});