index.tsx
1import { render } from "solid-js/web";2import App from "./App";3import { isNativePlatform } from "../shared/native";45// Android: there is no MV3 service worker, so the popup itself owns message6// handling. Without this the chrome shim's sendMessage queue fills up and7// every call times out as SERVICE_WORKER_UNAVAILABLE. setupMessageHandler8// also wires __peachRegisterMessageHandler for in-process routing.9if (isNativePlatform()) {10 void import("../background/messages").then((m) => m.setupMessageHandler());11}1213const root = document.getElementById("app");14if (root) {15 render(() => <App />, root);16}