summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/client.js2
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]))