Free, open-source screen sharing for private live streams with friends. Watch together in a browser or self-host Piik. 免费开源的私密屏幕共享,支持游戏直播、一起看电影与自部署。
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { App } from "./App";
import { StartupFailure } from "./components/living/StartupFailure";
import "./styles.css";
async function main() {
let app = <App />;
// Room controls share the Popover API; install it before any component mounts.
if (!("popover" in HTMLElement.prototype)) {
try {
await import("./ui/popover-polyfill");
} catch (error) {
console.error("Could not initialize page controls", error);
app = <StartupFailure />;
}
}
const root = document.getElementById("root");
if (!root) {
throw new Error("Application root was not found");
}
createRoot(root).render(
<StrictMode>
{app}
</StrictMode>,
);
}
void main();