File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,10 @@ import { CUSTOM_PROTOCOL } from '../constants/config';
22
33// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
44export 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 }
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments