File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import './routes/dashboard';
3
3
import { clearGuestSettings } from './routes/dashboard' ;
4
4
import './routes/data' ;
5
5
import './routes/cloudbased' ;
6
- import path from 'path' ;
6
+ import { join } from 'path' ;
7
7
8
8
// Declare variable to be used as the application window
9
9
let win : Electron . BrowserWindow ;
@@ -22,7 +22,6 @@ const createWindow = () => {
22
22
nodeIntegration : true ,
23
23
contextIsolation : false ,
24
24
} ,
25
-
26
25
} ) ;
27
26
28
27
if ( process . env . NODE_ENV === 'development' ) {
@@ -33,7 +32,11 @@ const createWindow = () => {
33
32
win . webContents . openDevTools ( ) ;
34
33
} else {
35
34
// 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 ) ;
37
40
}
38
41
39
42
ipcMain . on ( 'max' , ( ) => {
You can’t perform that action at this time.
0 commit comments