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:
Hugh Nimmo-Smith
2025-03-26 11:21:15 +00:00
committed by GitHub
parent 82ecd9d451
commit 4644fc8976

View File

@@ -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,
});