diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-07-02 23:12:41 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-07-02 23:12:41 +0200 |
| commit | 2f89d207a367fe68d69d02e257b9f600977b0137 (patch) | |
| tree | 946d24628e0e3844bb7f5989b60170e628cba84c /client | |
| parent | ba08fd7f75a29ba64f0be2527f65d7445cb7cb34 (diff) | |
bundle
Diffstat (limited to 'client')
| -rw-r--r-- | client/client.js | 2 |
1 files changed, 1 insertions, 1 deletions
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])) |
