twebsocket: hostname - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit cbf13197e2e4b5c3daa718f438a10fa8b193b091 DIR parent e9f5e6866dd51532f9b36d82f0607a74d15251ea HTML Author: ThomasV <thomasv@gitorious> Date: Sat, 25 Jul 2015 12:31:35 +0200 websocket: hostname Diffstat: M lib/www/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/lib/www/index.html b/lib/www/index.html t@@ -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); };