websocket: hostname

This commit is contained in:
ThomasV 2015-07-25 12:31:35 +02:00
parent e9f5e6866d
commit cbf13197e2
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ if (id) {
});
};
var ws = new WebSocket("wss://electrum.org:9999/");
var ws = new WebSocket("wss://" + window.location.hostname + ":9999/");
ws.onopen = function() {
ws.send('id:' + id);
};