1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-30 09:45:15 +01:00

Fixes typo #6

This commit is contained in:
Amir Raminfar
2018-11-20 07:45:24 -08:00
parent 67ab2ab170
commit cfc3e81820

View File

@@ -60,7 +60,7 @@ export default {
ws = null;
this.messages = [];
}
const protocol = SSL_ENABLED ? "wws" : "ws";
const protocol = SSL_ENABLED ? "wss" : "ws";
ws = new WebSocket(`${protocol}://${window.location.host}${BASE_PATH}/api/logs?id=${this.id}`);
ws.onopen = e => console.log("Connection opened.");
ws.onclose = e => console.log("Connection closed.");