Skip to content

Commit bbc60d8

Browse files
author
chen zhang
committed
fix comment
1 parent ee1007f commit bbc60d8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/app/[owner]/[repo]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ Remember:
519519
try {
520520
// Create WebSocket URL from the server base URL
521521
const serverBaseUrl = process.env.NEXT_PUBLIC_SERVER_BASE_URL || 'http://localhost:8001';
522-
const wsBaseUrl = serverBaseUrl.replace(/^http/, 'ws')? serverBaseUrl.replace(/^https/, 'wss'): serverBaseUrl.replace(/^http/, 'ws');
522+
const wsBaseUrl = serverBaseUrl.replace(/^http/, 'ws');
523523
const wsUrl = `${wsBaseUrl}/ws/chat`;
524524

525525
// Create a new WebSocket connection
@@ -816,7 +816,7 @@ IMPORTANT:
816816
try {
817817
// Create WebSocket URL from the server base URL
818818
const serverBaseUrl = process.env.NEXT_PUBLIC_SERVER_BASE_URL || 'http://localhost:8001';
819-
const wsBaseUrl = serverBaseUrl.replace(/^http/, 'ws')? serverBaseUrl.replace(/^https/, 'wss'): serverBaseUrl.replace(/^http/, 'ws');
819+
const wsBaseUrl = serverBaseUrl.replace(/^http/, 'ws');
820820
const wsUrl = `${wsBaseUrl}/ws/chat`;
821821

822822
// Create a new WebSocket connection

src/app/[owner]/[repo]/slides/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ Give me the numbered list with brief descriptions for each slide. Be creative bu
266266
try {
267267
// Create WebSocket URL from the server base URL
268268
const serverBaseUrl = process.env.NEXT_PUBLIC_SERVER_BASE_URL || 'http://localhost:8001';
269-
const wsBaseUrl = serverBaseUrl.replace(/^http/, 'ws')? serverBaseUrl.replace(/^https/, 'wss'): serverBaseUrl.replace(/^http/, 'ws');
269+
const wsBaseUrl = serverBaseUrl.replace(/^http/, 'ws');
270270
const wsUrl = `${wsBaseUrl}/ws/chat`;
271271

272272
// Create a new WebSocket connection
@@ -542,7 +542,7 @@ Please return ONLY the HTML with no markdown formatting or code blocks. Just the
542542
try {
543543
// Create WebSocket URL from the server base URL
544544
const serverBaseUrl = process.env.NEXT_PUBLIC_SERVER_BASE_URL || 'http://localhost:8001';
545-
const wsBaseUrl = serverBaseUrl.replace(/^http/, 'ws')? serverBaseUrl.replace(/^https/, 'wss'): serverBaseUrl.replace(/^http/, 'ws');
545+
const wsBaseUrl = serverBaseUrl.replace(/^http/, 'ws');
546546
const wsUrl = `${wsBaseUrl}/ws/chat`;
547547

548548
// Create a new WebSocket connection

src/app/[owner]/[repo]/workshop/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ Make the workshop content in ${language === 'en' ? 'English' :
318318
try {
319319
// Create WebSocket URL from the server base URL
320320
const serverBaseUrl = process.env.NEXT_PUBLIC_SERVER_BASE_URL || 'http://localhost:8001';
321-
const wsBaseUrl = serverBaseUrl.replace(/^http/, 'ws')? serverBaseUrl.replace(/^https/, 'wss'): serverBaseUrl.replace(/^http/, 'ws');
321+
const wsBaseUrl = serverBaseUrl.replace(/^http/, 'ws');
322322
const wsUrl = `${wsBaseUrl}/ws/chat`;
323323

324324
// Create a new WebSocket connection

0 commit comments

Comments
 (0)