Skip to content

Commit

Permalink
Merge pull request #641 from h3poteto/fix/protocol/websocket
Browse files Browse the repository at this point in the history
Fix protocol of websocket in streaming
  • Loading branch information
h3poteto authored Oct 6, 2018
2 parents 9997434 + a6a469f commit a0fd3be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a0fd3be

Please sign in to comment.