mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-05 19:59:20 +00:00
add crashme button
This commit is contained in:
@@ -21,6 +21,7 @@ import {
|
|||||||
} from "matrix-js-sdk";
|
} from "matrix-js-sdk";
|
||||||
import { logger } from "matrix-js-sdk/lib/logger";
|
import { logger } from "matrix-js-sdk/lib/logger";
|
||||||
import {
|
import {
|
||||||
|
Button,
|
||||||
EditInPlace,
|
EditInPlace,
|
||||||
Root as Form,
|
Root as Form,
|
||||||
Heading,
|
Heading,
|
||||||
@@ -116,6 +117,12 @@ export const DeveloperSettingsTab: FC<Props> = ({
|
|||||||
return null;
|
return null;
|
||||||
}, [livekitRooms]);
|
}, [livekitRooms]);
|
||||||
|
|
||||||
|
const [crashMe, setCrashMe] = useState(false);
|
||||||
|
|
||||||
|
if (crashMe) {
|
||||||
|
throw new Error("CrashMe");
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<p>
|
<p>
|
||||||
@@ -327,6 +334,13 @@ export const DeveloperSettingsTab: FC<Props> = ({
|
|||||||
<pre>{JSON.stringify(env, null, 2)}</pre>
|
<pre>{JSON.stringify(env, null, 2)}</pre>
|
||||||
<p>{t("developer_mode.url_params")}</p>
|
<p>{t("developer_mode.url_params")}</p>
|
||||||
<pre>{JSON.stringify(urlParams, null, 2)}</pre>
|
<pre>{JSON.stringify(urlParams, null, 2)}</pre>
|
||||||
|
<Button
|
||||||
|
onClick={() => {
|
||||||
|
setCrashMe(true);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
CrashMe
|
||||||
|
</Button>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user