Skip to content

Commit 9736972

Browse files
authored
Merge pull request #142 from Accedia/fix/fix-the-url
Fix/fix the url
2 parents 6d91f76 + 3b3d7fc commit 9736972

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

electron-app/src/utils/window_manager.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ class WindowManager {
7171
const storedUrl = store.get('url') as string | null;
7272
log.info('storedUrl at line 70,', storedUrl);
7373

74+
const newStoredUrl = storedUrl?.replace('https//', 'https://') ?? null;
75+
log.info('new', newStoredUrl);
7476

75-
const newStoredUrl = storedUrl.replace('https//', 'https://');
76-
log.info('new',newStoredUrl);
77-
const url = storedUrl ? newStoredUrl : getCustomProtocolUrl(process.argv);
77+
const url = newStoredUrl || getCustomProtocolUrl(process.argv);
7878
log.info('The url at line 71 in the startLoading', url);
7979

8080
if (url) {

0 commit comments

Comments
 (0)