File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ const uuID = () => {
34
34
return uuid_generate ( ) . replace ( / - / g, '' ) ;
35
35
} ;
36
36
const isElectronRender = typeof process === 'object' ;
37
- const socketIo = io ( ) ;
37
+ let socketIo = null ;
38
38
/**
39
39
* getImapSmtpHost
40
40
* @param email <string>
@@ -2827,6 +2827,7 @@ var view_layout;
2827
2827
if ( newValue == '1' ) {
2828
2828
}
2829
2829
} ) ;
2830
+ socketIo = io ( ) ;
2830
2831
socketIo . emit ( 'init' , ( err , data ) => {
2831
2832
this . config ( data ) ;
2832
2833
if ( ! data . keypair . createDate )
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ const uuID = () => {
51
51
}
52
52
53
53
const isElectronRender = typeof process === 'object'
54
- const socketIo : SocketIOClient . Socket = io ( )
54
+ let socketIo : SocketIOClient . Socket = null
55
55
/**
56
56
* getImapSmtpHost
57
57
* @param email <string>
@@ -2996,6 +2996,8 @@ module view_layout {
2996
2996
}
2997
2997
} )
2998
2998
2999
+ socketIo = io ( )
3000
+
2999
3001
socketIo . emit ( 'init' , ( err : Error , data : install_config ) => {
3000
3002
3001
3003
this . config ( data )
@@ -3062,6 +3064,8 @@ module view_layout {
3062
3064
}
3063
3065
} )
3064
3066
3067
+
3068
+
3065
3069
socketIo . on ( 'newKeyPairCallBack' , ( data : keypair ) => {
3066
3070
3067
3071
if ( ! data ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " qtgate" ,
3
- "version" : " 0.8.51 " ,
3
+ "version" : " 0.8.52 " ,
4
4
"license" : " MIT" ,
5
5
"description" : " QTGate desktop client" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments