aboutsummaryrefslogtreecommitdiff
path: root/threepenny.patch
diff options
context:
space:
mode:
Diffstat (limited to 'threepenny.patch')
-rw-r--r--threepenny.patch25
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 @@
1From 480675cba32803ab74ec064e14ed6b2001c8e071 Mon Sep 17 00:00:00 2001
2From: Gregor Kleen <aethoago@141.li>
3Date: Tue, 23 Feb 2016 18:14:48 +0000
4Subject: [PATCH] Switched to using location.host
5
6---
7 js/comm.js | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10diff --git a/js/comm.js b/js/comm.js
11index 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--
242.7.0
25