Skip to content

Commit e796436

Browse files
authored
Merge pull request #138 from Accedia/feat/fix-auto-updater
fix/auto-updater
2 parents 525f969 + 02ba7e2 commit e796436

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

electron-app/src/utils/window_manager.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ class WindowManager {
6767
this.loadLoadingWindowContent();
6868
this.loadingWindow.once('show', async () => {
6969
const storedUrl = store.get('url') as string | null;
70-
const url = storedUrl ? storedUrl : getCustomProtocolUrl(process.argv);
71-
log.info('The url at line 71 in the startLoading', url);
70+
const newStoredUrl = storedUrl.replace('https//', 'https://');
71+
const url = storedUrl ? newStoredUrl : getCustomProtocolUrl(process.argv);
7272
if (url) {
7373
const sessionId = extractSessionIdFromUrl(url);
7474
FirebaseService.useCurrentSession.set(sessionId);
@@ -87,7 +87,8 @@ class WindowManager {
8787
public startApp = async (): Promise<void> => {
8888
await this.createMainWindow();
8989
const storedUrl = store.get('url') as string | null;
90-
const url = storedUrl ? storedUrl : getCustomProtocolUrl(process.argv);
90+
const newStoredUrl = storedUrl.replace('https//', 'https://');
91+
const url = storedUrl ? newStoredUrl : getCustomProtocolUrl(process.argv);
9192
if (process.platform !== 'darwin') {
9293
if (url) {
9394
/**

0 commit comments

Comments
 (0)