summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2017-02-17 02:22:30 (GMT)
committerChristian Pointner <equinox@helsinki.at>2017-02-17 02:22:30 (GMT)
commite3a0067426b0c9dae443c579f7baaef0ef3bdd96 (patch)
treef3e2d6c53ba2dce30b11447c67899915ab2fcee9 /www/js
parent993df89c979d8da28f76395d4711a145a54c0b5c (diff)
remove hardcoded url
Diffstat (limited to 'www/js')
-rw-r--r--www/js/importer.js2
-rw-r--r--www/js/router.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/www/js/importer.js b/www/js/importer.js
index 5d047ef..0753b5d 100644
--- a/www/js/importer.js
+++ b/www/js/importer.js
@@ -453,7 +453,7 @@ Rdxport.Upload.prototype.onmessage = function(event) {
error: function(req, status, err) { console.log({StatusText: status, ErrorString: err}); },
success: function(data, status, req) { console.log(data); }
};
- $.ajax('https://import.helsinki.at/upload/' + importer.username + '/' + data.ID, command);
+ $.ajax('https://' + window.location.host + '/upload/' + importer.username + '/' + data.ID, command);
}
this.isNew = true;
this.group.fetchCarts();
diff --git a/www/js/router.js b/www/js/router.js
index cbd453c..8c68685 100644
--- a/www/js/router.js
+++ b/www/js/router.js
@@ -55,7 +55,7 @@ Rdxport.Router.prototype.route = function(page, subpage) {
}
if (!importer) {
- importer = new Rdxport.Importer(this.auth.username, this.auth.token, 'wss://import.helsinki.at/rhimportd');
+ importer = new Rdxport.Importer(this.auth.username, this.auth.token, 'wss://' + window.location.host + '/rhimportd');
window.onbeforeunload = function(event) {
if (importer.isUploading()) {
return 'Achtung: Es laufen noch imports.';