Skip to content

Commit 57acbff

Browse files
chore: socketUrlRaw -> socketUrl
1 parent f4f99b2 commit 57acbff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/inbox.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ export class Inbox implements vscode.Disposable {
3333

3434
const baseUrl = new URL(baseUrlRaw)
3535
const socketProto = baseUrl.protocol === "https:" ? "wss:" : "ws:"
36-
const socketUrlRaw = `${socketProto}//${baseUrl.host}/api/v2/notifications/inbox/watch?templates=${watchTemplatesParam}&targets=${watchTargetsParam}`
36+
const socketUrl = `${socketProto}//${baseUrl.host}/api/v2/notifications/inbox/watch?templates=${watchTemplatesParam}&targets=${watchTargetsParam}`
3737

3838
const coderSessionTokenHeader = "Coder-Session-Token"
39-
this.socket = new WebSocket(new URL(socketUrlRaw), {
39+
this.socket = new WebSocket(new URL(socketUrl), {
4040
followRedirects: true,
4141
agent: httpAgent,
4242
headers: {

0 commit comments

Comments
 (0)