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
1 changed files with 2 additions and 1 deletions

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
}