@@ -24,7 +24,7 @@ const fileContent = require('./fileContent.js');
24
24
const flattenComponent = require ( './flattenComponent.js' ) ;
25
25
26
26
// for development - Hot-Reloading
27
- require ( 'electron-reload' ) ( __dirname ) ;
27
+ // require('electron-reload')(__dirname);
28
28
29
29
// Keep a global reference of the window object, if you don't, the window will
30
30
// be closed automatically when the JavaScript object is garbage collected.
@@ -75,12 +75,12 @@ function createWindow() {
75
75
Menu . setApplicationMenu ( menu ) ;
76
76
77
77
// Open the DevTools.
78
- mainWindow . webContents . openDevTools ( )
78
+ // mainWindow.webContents.openDevTools()
79
79
80
80
81
81
/*****
82
-
83
- Functions for Electron backend functionality:
82
+
83
+ Functions for Electron backend functionality:
84
84
componentTree:
85
85
- the IPC listens for component info to be received from the front end.
86
86
- openDialog lets user to select where exported file folder will be generated.
@@ -93,7 +93,7 @@ function createWindow() {
93
93
94
94
saveFile:
95
95
- allows user to save project file
96
-
96
+
97
97
*****/
98
98
IPC . on ( 'componentTree' , ( event , components ) => {
99
99
let flattenComps = flattenComponent ( components ) ;
@@ -147,9 +147,9 @@ function createWindow() {
147
147
} ) ;
148
148
149
149
/*****
150
-
150
+
151
151
Requires in direct path for React Dev Tools:
152
- - File path will be unique to the dev tools location on the developer's machine.
152
+ - File path will be unique to the dev tools location on the developer's machine.
153
153
154
154
*****/
155
155
// const configValues = require('./config');
0 commit comments