Skip to content

Commit 48a954d

Browse files
authored
Merge pull request #145 from Accedia/fix/final-fix-of-the-url-in-start-app
Fix/final fix of the url in start app
2 parents e35e059 + 23eda18 commit 48a954d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

electron-app/src/utils/window_manager.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,15 @@ class WindowManager {
9595

9696
public startApp = async (): Promise<void> => {
9797
await this.createMainWindow();
98+
log.info('loading has started this is on show');
9899
const storedUrl = store.get('url') as string | null;
99-
const newStoredUrl = storedUrl.replace('https//', 'https://');
100-
const url = storedUrl ? newStoredUrl : getCustomProtocolUrl(process.argv);
100+
log.info('storedUrl at line 70,', storedUrl);
101+
102+
const newStoredUrl = storedUrl?.replace('https//', 'https://') ?? null;
103+
log.info('new', newStoredUrl);
104+
105+
const url = newStoredUrl || getCustomProtocolUrl(process.argv);
106+
log.info('The url at line 71 in the startLoading', url);
101107
if (process.platform !== 'darwin') {
102108
if (url) {
103109
/**

0 commit comments

Comments
 (0)