Skip to content

Commit 5df6f33

Browse files
Peter XiePeter Xie
authored andcommitted
v0.8.52 fix windows8 OS bug
1 parent b3af60b commit 5df6f33

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

app/public/scripts/home.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const uuID = () => {
3434
return uuid_generate().replace(/-/g, '');
3535
};
3636
const isElectronRender = typeof process === 'object';
37-
const socketIo = io();
37+
let socketIo = null;
3838
/**
3939
* getImapSmtpHost
4040
* @param email <string>
@@ -2827,6 +2827,7 @@ var view_layout;
28272827
if (newValue == '1') {
28282828
}
28292829
});
2830+
socketIo = io();
28302831
socketIo.emit('init', (err, data) => {
28312832
this.config(data);
28322833
if (!data.keypair.createDate)

app/public/scripts/home.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const uuID = () => {
5151
}
5252

5353
const isElectronRender = typeof process === 'object'
54-
const socketIo: SocketIOClient.Socket = io ()
54+
let socketIo: SocketIOClient.Socket = null
5555
/**
5656
* getImapSmtpHost
5757
* @param email <string>
@@ -2996,6 +2996,8 @@ module view_layout {
29962996
}
29972997
})
29982998

2999+
socketIo = io ()
3000+
29993001
socketIo.emit ( 'init', ( err: Error, data: install_config ) => {
30003002

30013003
this.config ( data )
@@ -3062,6 +3064,8 @@ module view_layout {
30623064
}
30633065
})
30643066

3067+
3068+
30653069
socketIo.on ( 'newKeyPairCallBack', ( data: keypair ) => {
30663070

30673071
if ( ! data ) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "qtgate",
3-
"version": "0.8.51",
3+
"version": "0.8.52",
44
"license": "MIT",
55
"description": "QTGate desktop client",
66
"scripts": {

0 commit comments

Comments
 (0)