Remove the dev-tools for rediricting API from production app

This commit is contained in:
Julian Stirling 2026-05-10 14:10:19 +01:00
parent 59a93c673a
commit a58007a98c
4 changed files with 2 additions and 69 deletions

View file

@ -3,15 +3,9 @@ import { ref, computed } from "vue";
function getOriginFromLocation() {
// This will default to the same origin that's serving
// the web app - but can be overridden by the URL.
// See also devTools.vue which can change the origin.
// the web app.
let url = new URL(window.location.href);
let origin = url.searchParams.get("overrideOrigin");
if (origin) {
return origin;
} else {
return `${url.origin}/api/v3`;
}
return `${url.origin}/api/v3`;
}
// Define Pinia store