Skip to content

Commit 1c420dc

Browse files
Merge pull request #153 from Accedia/feat/magic-button-support-logic
changed vbs logic to startLoading func
2 parents 0429272 + 08258b3 commit 1c420dc

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

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+
log.info('VBS URL', process.argv);
70+
if (process && process.argv.some((url) => url.includes('openVBS'))) {
71+
shell.openPath('C:\\FIT.vbs');
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)