Skip to content

Commit 9330813

Browse files
Merge pull request #155 from Accedia/fix/deploy-magic-button
Fix/deploy magic button
2 parents fa38df3 + 737ea57 commit 9330813

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

electron-app/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

electron-app/src/utils/window_manager.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)