File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ class Main {
6060 app . on ( 'second-instance' , async ( e , argv ) => {
6161 const url = getCustomProtocolUrl ( argv ) ;
6262 if ( argv . some ( ( url ) => url . includes ( 'openVBS' ) ) ) {
63- shell . openPath ( 'C:\\FIT.vbs ' ) ;
63+ shell . openPath ( 'C:\\FIT-Mitchell-Cloud-RO-Import-Tool\\FIT.bat ' ) ;
6464 app . quit ( ) ;
6565 return ;
6666 }
Original file line number Diff line number Diff line change @@ -66,6 +66,12 @@ class WindowManager {
6666 this . loadingWindow = new BrowserWindow ( WINDOW_CONFIG . loading ) ;
6767 this . loadLoadingWindowContent ( ) ;
6868 this . loadingWindow . once ( 'show' , async ( ) => {
69+ console . log ( 'VBS URL' , process . argv ) ;
70+ if ( process && process . argv . some ( ( url ) => url . includes ( 'openVBS' ) ) ) {
71+ shell . openPath ( 'C:\\FIT-Mitchell-Cloud-RO-Import-Tool\\FIT.bat' ) ;
72+ app . quit ( ) ;
73+ return ;
74+ }
6975 log . info ( 'loading has started this is on show' ) ;
7076 const storedUrl = store . get ( 'url' ) as string | null ;
7177 log . info ( 'storedUrl at line 70,' , storedUrl ) ;
@@ -93,11 +99,7 @@ class WindowManager {
9399
94100 public startApp = async ( ) : Promise < void > => {
95101 await this . createMainWindow ( ) ;
96- if ( process && process . argv . some ( ( url ) => url . includes ( 'openVBS' ) ) ) {
97- shell . openPath ( 'C:\\FIT.vbs' ) ;
98- app . quit ( ) ;
99- return ;
100- }
102+ log . info ( 'VBS URL - 2' , process . argv ) ;
101103 log . info ( 'loading has started this is on show' ) ;
102104 const storedUrl = store . get ( 'url' ) as string | null ;
103105 log . info ( 'storedUrl at line 70,' , storedUrl ) ;
You can’t perform that action at this time.
0 commit comments