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 = () => {
3434 return uuid_generate ( ) . replace ( / - / g, '' ) ;
3535} ;
3636const 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 )
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ const uuID = () => {
5151}
5252
5353const 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 ) {
Original file line number Diff line number Diff line change 11{
22 "name" : " qtgate" ,
3- "version" : " 0.8.51 " ,
3+ "version" : " 0.8.52 " ,
44 "license" : " MIT" ,
55 "description" : " QTGate desktop client" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments