From 199cfc88439273ab8ede8cef8cd13868ad8f0ae9 Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Sun, 25 Apr 2021 01:23:05 +0100 Subject: [PATCH] Use window location for API too. --- src/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api.ts b/src/api.ts index 085ad84..af18878 100644 --- a/src/api.ts +++ b/src/api.ts @@ -53,7 +53,7 @@ export async function bapsicleApiRequest( params: any ): Promise { const res = await apiRequest( - "http://webstudio-dev.ury.org.uk:13500" + endpoint, + "http://" + window.location.hostname + ":13500" + endpoint, method, params );