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 }