Remove the dev-tools for rediricting API from production app
This commit is contained in:
parent
59a93c673a
commit
a58007a98c
4 changed files with 2 additions and 69 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue