mirror of
https://github.com/vector-im/element-call.git
synced 2026-02-02 04:05:56 +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
|
||||
// @ts-ignore
|
||||
async (opts) => {
|
||||
if (!getRageshakeSubmitUrl()) {
|
||||
const submitUrl = getRageshakeSubmitUrl();
|
||||
if (!submitUrl) {
|
||||
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",
|
||||
body,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user