mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-19 06:20:25 +00:00
add crashme button
This commit is contained in:
@@ -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>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user