@@ -13,11 +13,6 @@ if (process.env.PROD) {
1313 . replace ( / \\ / g, "\\\\" ) ;
1414}
1515
16- let mainWindow ;
17- let authCode ;
18- const protocol = isDev ? "overvuedev" : "overvue" ;
19-
20- // Used to console log for main process in production mode
2116function logEverywhere ( toBeLogged ) {
2217 if ( isDev ) {
2318 console . log ( toBeLogged ) ;
@@ -31,13 +26,19 @@ function logEverywhere(toBeLogged) {
3126 }
3227}
3328
29+ let mainWindow ;
30+ let authCode ;
31+ const protocol = isDev ? "overvuedev" : "overvue" ;
32+
33+ // Used to console log for main process in production mode
34+
3435const deeplink = new Deeplink ( {
3536 app,
3637 mainWindow,
3738 protocol,
3839 isDev,
3940 debugLogging : true ,
40- // electronPath: '../../ node_modules/electron/dist/electron.app '
41+ electronPath : '/ node_modules/electron/dist/electron.exe '
4142} ) ;
4243// logEverywhere(`electron path: ${require('path').join(__dirname, '../../node_modules/electron/dist/electron.exe')}`);
4344// Sends request to Slack for User's information,
@@ -49,7 +50,7 @@ function sendTokenRequest() {
4950 client_id : process . env . SLACK_CLIENT_ID ,
5051 client_secret : process . env . SLACK_CLIENT_SECRET ,
5152 code : authCode ,
52- redirect_uri : isDev ? "overvuedev://test" : "overvue://slack"
53+ redirect_uri : process . env . SLACK_REDIRECT_URI
5354 } ;
5455 logEverywhere ( authData . code ) ;
5556
@@ -127,6 +128,7 @@ function createWindow() {
127128 } ) ;
128129
129130 logEverywhere ( `Current deeplink Protocol: ${ deeplink . getProtocol ( ) } ` ) ;
131+ logEverywhere ( `process.execPath: ${ process . execPath } ` ) ;
130132 mainWindow . loadURL ( process . env . APP_URL ) ;
131133
132134 mainWindow . on ( "closed" , ( ) => {
0 commit comments