Skip to content

Commit

Permalink
#3339 Fix bug cause app not working in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
zxdong262 committed Apr 7, 2024
1 parent be4761e commit 23a7d85
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 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": "electerm",
"version": "1.38.50",
"version": "1.38.60",
"description": "Terminal/ssh/telnet/serialport/sftp client(linux, mac, win)",
"main": "app.js",
"bin": "npm/electerm",
Expand Down
3 changes: 3 additions & 0 deletions src/client/common/fetch-from-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export const initWsCommon = async () => {
return
}
const ws = await initWs('common', id, undefined, undefined, true)
if (!ws) {
return
}
window.et.wsOpened = true
ws.onclose = () => {
window.et.wsOpened = false
Expand Down

0 comments on commit 23a7d85

Please sign in to comment.