Use window location for API too.
This commit is contained in:
parent
1a479905f6
commit
199cfc8843
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ export async function bapsicleApiRequest(
|
|||
params: any
|
||||
): Promise<any> {
|
||||
const res = await apiRequest(
|
||||
"http://webstudio-dev.ury.org.uk:13500" + endpoint,
|
||||
"http://" + window.location.hostname + ":13500" + endpoint,
|
||||
method,
|
||||
params
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue