Skip to content

Commit f5abb49

Browse files
committed
fix/new-issue-with-installing
1 parent 6f1a078 commit f5abb49

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

electron-app/src/utils/get_custom_protocol_url.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ import { CUSTOM_PROTOCOL } from '../constants/config';
22

33
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
44
export const getCustomProtocolUrl = (argv: any): string => {
5+
console.log('in get cumstom protocol');
56
const customProtocolPrefix = `${CUSTOM_PROTOCOL}://`;
67
let url = argv.find((arg: any) => arg.startsWith(customProtocolPrefix));
8+
console.log('url line 8 get custom protocol', url);
79
if (url) {
810
url = url.replace(customProtocolPrefix, '');
911
}

electron-app/src/utils/window_manager.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,13 @@ class WindowManager {
6363
};
6464

6565
public startLoading = (): void => {
66+
console.log("starting loading");
6667
this.loadingWindow = new BrowserWindow(WINDOW_CONFIG.loading);
6768
this.loadLoadingWindowContent();
6869
this.loadingWindow.once('show', async () => {
70+
console.log('loading has started this is on show');
6971
const storedUrl = store.get('url') as string | null;
72+
console.log('storedUrl at line 70,', storedUrl);
7073
const url = storedUrl ? storedUrl : getCustomProtocolUrl(process.argv);
7174
log.info('The url at line 71 in the startLoading', url);
7275
if (url) {
@@ -75,6 +78,7 @@ class WindowManager {
7578
}
7679

7780
if (!isAppDev(app) && !isDev()) {
81+
console.log('here in auto updater');
7882
const autoUpdater = new AutoUpdater(this.loadingWindow);
7983
await autoUpdater.checkAndDownloadUpdates(url);
8084
}

0 commit comments

Comments
 (0)