From a6a469f5f534fc4160008dd4037a10e0ce0c3a30 Mon Sep 17 00:00:00 2001 From: AkiraFukushima Date: Sat, 6 Oct 2018 22:28:16 +0900 Subject: [PATCH] Fix protocol of websocket in streaming --- src/main/websocket.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/websocket.js b/src/main/websocket.js index f1bd23d9b6..abb319bd7f 100644 --- a/src/main/websocket.js +++ b/src/main/websocket.js @@ -4,9 +4,10 @@ import log from 'electron-log' export default class WebSocket { constructor (account) { this.account = account + const url = account.baseURL.replace(/^https:\/\//, 'wss://') this.client = new Mastodon( account.accessToken, - account.baseURL + '/api/v1' + url + '/api/v1' ) this.listener = null }