1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2025-02-01 09:56:46 +01:00

Merge pull request #641 from h3poteto/fix/protocol/websocket

Fix protocol of websocket in streaming
This commit is contained in:
AkiraFukushima 2018-10-06 22:34:51 +09:00 committed by GitHub
commit a0fd3be59b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}