mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-29 21:15:19 +00:00
Use correct rageshake URL when running in embedded package (#3133)
It was incorrectly trying to use the one from config.json
This commit is contained in:
@@ -158,7 +158,8 @@ export function useSubmitRageshake(): {
|
|||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
async (opts) => {
|
async (opts) => {
|
||||||
if (!getRageshakeSubmitUrl()) {
|
const submitUrl = getRageshakeSubmitUrl();
|
||||||
|
if (!submitUrl) {
|
||||||
throw new Error("No rageshake URL is configured");
|
throw new Error("No rageshake URL is configured");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -292,7 +293,7 @@ export function useSubmitRageshake(): {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const res = await fetch(Config.get().rageshake!.submit_url, {
|
const res = await fetch(submitUrl, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body,
|
body,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user