Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Sep 1, 2023
1 parent 9da6f72 commit bb16d56
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/utils/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,8 @@ export async function getSocket(url: string) {
(WebSocket as unknown as { default?: typeof WebSocket }).default
?.constructor
)
WebSocket_ = (
WebSocket as unknown as { default: typeof WebSocket }
).default
WebSocket_ = (WebSocket as unknown as { default: typeof WebSocket })
.default
else WebSocket_ = WebSocket.WebSocket

const webSocket = new WebSocket_(url)
Expand Down

0 comments on commit bb16d56

Please sign in to comment.