File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import './routes/dashboard';
33import { clearGuestSettings } from './routes/dashboard' ;
44import './routes/data' ;
55import './routes/cloudbased' ;
6- import path from 'path' ;
6+ import { join } from 'path' ;
77
88// Declare variable to be used as the application window
99let win : Electron . BrowserWindow ;
@@ -22,7 +22,6 @@ const createWindow = () => {
2222 nodeIntegration : true ,
2323 contextIsolation : false ,
2424 } ,
25-
2625 } ) ;
2726
2827 if ( process . env . NODE_ENV === 'development' ) {
@@ -33,7 +32,11 @@ const createWindow = () => {
3332 win . webContents . openDevTools ( ) ;
3433 } else {
3534 // Production
36- win . loadFile ( path . resolve ( __dirname , '../index.html' ) ) ;
35+ // win.loadFile(path.resolve(__dirname, '../index.html'));
36+ //* Wasn't going to the correct file in the line above.
37+ const indexPath = join ( app . getAppPath ( ) , 'index.html' ) ;
38+ console . log ( 'indexPath: ' , indexPath ) ; //* I can't get this to console log. I would love to see what this path is to better understand the build!
39+ win . loadFile ( indexPath ) ;
3740 }
3841
3942 ipcMain . on ( 'max' , ( ) => {
You can’t perform that action at this time.
0 commit comments