From ea382e18bb9077384159a8aaf50e13e3bc23f69e Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Sat, 4 Jun 2016 16:56:59 +0100 Subject: [PATCH] fix the url to be dynamic --- openlp/plugins/remotes/html/js/stage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlp/plugins/remotes/html/js/stage.js b/openlp/plugins/remotes/html/js/stage.js index 7430038db..dad0b2d96 100644 --- a/openlp/plugins/remotes/html/js/stage.js +++ b/openlp/plugins/remotes/html/js/stage.js @@ -149,7 +149,7 @@ window.OpenLP = { pollServer: function () { if ("WebSocket" in window) { // Let us open a web socket - var ws = new WebSocket("ws://192.168.0.51:4318/poll"); + var ws = new WebSocket('ws://' + location.hostname + ':4318/poll'); ws.binaryType = 'arraybuffer'; ws.onmessage = function (evt) { var msg = JSON.parse(String.fromCharCode.apply(null, new Uint8Array(evt.data)));