Skip to content

Commit

Permalink
feat: Saving file
Browse files Browse the repository at this point in the history
Signed-off-by: Hoang Pham <[email protected]>
  • Loading branch information
hweihwang committed Jul 22, 2024
1 parent 1bd30cd commit 96ffc78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/collaboration/Portal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class Portal {
}).connect()

socket.on('connect_error', (error) => {
if (error && error.message && !error.message.includes('Unauthorized')) {
if (error && error.message && !error.message.includes('Authentication error')) {
this.handleConnectionError()
}
})
Expand Down Expand Up @@ -76,7 +76,7 @@ export class Portal {
this.socket = socket

this.socket?.on('connect_error', async (error) => {
if (error && error.message && error.message.includes('Unauthorized')) {
if (error && error.message && error.message.includes('Authentication error')) {
await this.handleTokenRefresh()
}
})
Expand Down

0 comments on commit 96ffc78

Please sign in to comment.