From 642f487a018378240393909e5136930778c65346 Mon Sep 17 00:00:00 2001 From: Akhil Gupta Date: Sat, 17 Apr 2021 10:25:05 +0530 Subject: [PATCH 1/2] Update issue templates --- .github/ISSUE_TEMPLATE/bug_report.md | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..75681b2 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,34 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +*Before creating a bug report please make sure you are using the latest docker image / code base.* + +**Please complete the following information** + - Installation Type: [Docker/Native] + - Have you tried using the latest docker image / code base [yes/no] + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + + +**Additional context** +Add any other context about the problem here. From 40c6603226ed8de568547e6c627ba2ae89d7c5df Mon Sep 17 00:00:00 2001 From: Ethan Apodaca Date: Wed, 21 Apr 2021 17:42:53 -0700 Subject: [PATCH 2/2] Use correct websocket protocol Based on window location the correct websocket protocol can be used. --- client/scripts.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/scripts.html b/client/scripts.html index ca4b9bb..755adab 100644 --- a/client/scripts.html +++ b/client/scripts.html @@ -117,8 +117,9 @@ } function getWebsocketConnection(onOpen,onMessage){ + const wsProto = window.location.protocol.startsWith('https') ? 'wss://' : 'ws://'; // Create WebSocket connection. - const socket = new WebSocket('ws://'+window.location.host+'/ws'); + const socket = new WebSocket(wsProto+window.location.host+'/ws'); socket.addEventListener('open', onOpen);