add crashme button

This commit is contained in:
Timo K
2025-12-05 11:05:12 +01:00
parent f05d4b158e
commit 394e88414f

View File

@@ -21,6 +21,7 @@ import {
} from "matrix-js-sdk";
import { logger } from "matrix-js-sdk/lib/logger";
import {
Button,
EditInPlace,
Root as Form,
Heading,
@@ -116,6 +117,12 @@ export const DeveloperSettingsTab: FC<Props> = ({
return null;
}, [livekitRooms]);
const [crashMe, setCrashMe] = useState(false);
if (crashMe) {
throw new Error("CrashMe");
}
return (
<>
<p>
@@ -327,6 +334,13 @@ export const DeveloperSettingsTab: FC<Props> = ({
<pre>{JSON.stringify(env, null, 2)}</pre>
<p>{t("developer_mode.url_params")}</p>
<pre>{JSON.stringify(urlParams, null, 2)}</pre>
<Button
onClick={() => {
setCrashMe(true);
}}
>
CrashMe
</Button>
</>
);
};