Skip to content

Commit

Permalink
feat: restore 1.0.0 version
Browse files Browse the repository at this point in the history
  • Loading branch information
ylxmf2005 committed Jan 25, 2025
1 parent f2510a6 commit 6015a47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "open-llm-vtuber-electron",
"version": "1.0.1",
"version": "1.0.0",
"description": "An Electron application with React and TypeScript",
"main": "./out/main/index.js",
"author": "example.com",
Expand Down
9 changes: 0 additions & 9 deletions src/renderer/src/services/websocket-service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,6 @@ class WebSocketService {
});
}

private static validateUrl(url: string): boolean {
try {
const urlObj = new URL(url);
return ['ws:', 'wss:'].includes(urlObj.protocol);
} catch (e) {
return false;
}
}

connect(url: string) {
if (this.ws?.readyState === WebSocket.CONNECTING ||
this.ws?.readyState === WebSocket.OPEN) {
Expand Down

0 comments on commit 6015a47

Please sign in to comment.