From 2f89d207a367fe68d69d02e257b9f600977b0137 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 2 Jul 2017 23:12:41 +0200 Subject: bundle --- client/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client/client.js b/client/client.js index 2f97e7c..9ee689c 100644 --- a/client/client.js +++ b/client/client.js @@ -1,5 +1,5 @@ function _get_url(_url, data) { - const url = new URL(document.origin + _url) + const url = new URL(window.location.origin + _url) console.log(_url, data, window.location.origin) if (data) { Object.keys(data).forEach(key => url.searchParams.append(key, data[key])) -- cgit v1.2.3-70-g09d2