diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-02-24 04:16:06 +0000 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-02-24 04:16:06 +0000 |
commit | c1451ffcbc021e4f25721541538173f24be8f3cc (patch) | |
tree | 232463360841f4b4aab46b44ea240dbd9ca0744f /threepenny.patch | |
parent | a3c18a40502ce7a806216425cfde8200df5ce12e (diff) | |
download | thermoprint-c1451ffcbc021e4f25721541538173f24be8f3cc.tar thermoprint-c1451ffcbc021e4f25721541538173f24be8f3cc.tar.gz thermoprint-c1451ffcbc021e4f25721541538173f24be8f3cc.tar.bz2 thermoprint-c1451ffcbc021e4f25721541538173f24be8f3cc.tar.xz thermoprint-c1451ffcbc021e4f25721541538173f24be8f3cc.zip |
Incorporated: Switched to using location.host
480675cba32803ab74ec064e14ed6b2001c8e071
Diffstat (limited to 'threepenny.patch')
-rw-r--r-- | threepenny.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/threepenny.patch b/threepenny.patch new file mode 100644 index 0000000..8420021 --- /dev/null +++ b/threepenny.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | From 480675cba32803ab74ec064e14ed6b2001c8e071 Mon Sep 17 00:00:00 2001 | ||
2 | From: Gregor Kleen <aethoago@141.li> | ||
3 | Date: Tue, 23 Feb 2016 18:14:48 +0000 | ||
4 | Subject: [PATCH] Switched to using location.host | ||
5 | |||
6 | --- | ||
7 | js/comm.js | 2 +- | ||
8 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
9 | |||
10 | diff --git a/js/comm.js b/js/comm.js | ||
11 | index 2d24f08..01763ba 100644 | ||
12 | --- a/js/comm.js | ||
13 | +++ b/js/comm.js | ||
14 | @@ -14,7 +14,7 @@ | ||
15 | ********************************************************************* */ | ||
16 | Haskell.createWebSocket = function (url0, receive) { | ||
17 | var that = {}; | ||
18 | - var url = 'ws:' + url0.slice(5) + 'websocket'; | ||
19 | + var url = 'ws://' + location.host + '/websocket'; | ||
20 | var ws = new WebSocket(url); | ||
21 | |||
22 | // Close WebSocket when the browser window is closed. | ||
23 | -- | ||
24 | 2.7.0 | ||
25 | |||