@fto-consult/expo-ui 7.4.2 → 7.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/electron/index.js +3 -2
- package/electron/init/main.js +8 -3
- package/electron/utils/index.js +1 -1
- package/package.json +1 -1
package/electron/index.js
CHANGED
@@ -276,10 +276,11 @@ ipcMain.on("electron-toggle-dev-tools",function(event,value) {
|
|
276
276
|
|
277
277
|
|
278
278
|
app.whenReady().then(() => {
|
279
|
+
const readOpts = {toggleDevTools,window:win,win};
|
279
280
|
if(typeof mainProcess.whenReady =='function'){
|
280
|
-
mainProcess.whenReady();
|
281
|
+
mainProcess.whenReady(readOpts);
|
281
282
|
} else if(typeof mainProcess.appOnReady =='function'){
|
282
|
-
mainProcess.appOnReady();
|
283
|
+
mainProcess.appOnReady(readOpts);
|
283
284
|
}
|
284
285
|
globalShortcut.register('CommandOrControl+F12', () => {
|
285
286
|
toggleDevTools();
|
package/electron/init/main.js
CHANGED
@@ -10,12 +10,17 @@
|
|
10
10
|
module.exports = {
|
11
11
|
/*****
|
12
12
|
@must return Instance of Browser window
|
13
|
+
width: 500, height: 400, transparent: true, frame: false,
|
14
|
+
alwaysOnTop: true
|
13
15
|
*/
|
14
|
-
splashScreen : function(){
|
16
|
+
splashScreen : function({width, height, transparent, frame, alwaysOnTop}){
|
15
17
|
return null;
|
16
18
|
},
|
17
|
-
/*** this function is called when app is ready
|
18
|
-
|
19
|
+
/*** this function is called when app is ready
|
20
|
+
toggleDevTools : {function},la fonction permettant de toggle les outils de developements
|
21
|
+
window : {BrowserWindow}, le browser window principal de l'application
|
22
|
+
*/
|
23
|
+
whenReady : function({toggleDevTools,window,win}){
|
19
24
|
|
20
25
|
}
|
21
26
|
}
|
package/electron/utils/index.js
CHANGED