From a9326d684101500c817c7f6999295af4b1578346 Mon Sep 17 00:00:00 2001 From: James Barnsley Date: Sun, 11 Jun 2017 20:39:31 +1200 Subject: [PATCH] Default port when using proxy accommodates SSL, fixes #123 --- src/js/bootstrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/bootstrap.js b/src/js/bootstrap.js index bb0bf411..a46d4883 100755 --- a/src/js/bootstrap.js +++ b/src/js/bootstrap.js @@ -28,7 +28,7 @@ var initialState = { mopidy: { connected: false, host: window.location.hostname, - port: (window.location.port ? window.location.port : '80'), + port: (window.location.port ? window.location.port : (window.location.protocol === 'https:' ? '443' : '80')), mute: false, volume: 0, progress: 0,