@@ -19,7 +19,7 @@ const {
19
19
20
20
21
21
// The splash screen is what appears while the app is loading
22
- const { initSplashScreen, OfficeTemplate } = require ( 'electron-splashscreen' ) ;
22
+ // const { initSplashScreen, OfficeTemplate } = require('electron-splashscreen');
23
23
const { resolve } = require ( 'app-root-path' ) ;
24
24
25
25
// to install react dev tool extension
@@ -88,19 +88,19 @@ async function createWindow() {
88
88
} ) ;
89
89
90
90
// Splash screen that appears while loading
91
- const hideSplashscreen = initSplashScreen ( {
92
- mainWindow : win ,
93
- icon : resolve ( 'app/src/public/icons/png/64x64.png' ) ,
94
- url : OfficeTemplate ,
95
- width : 500 ,
96
- height : 300 ,
97
- brand : 'OS Labs' ,
98
- productName : 'ReacType' ,
99
- logo : resolve ( 'app/src/public/icons/png/64x64.png' ) ,
100
- color : '#3BBCAF' ,
101
- website : 'www.reactype.io' ,
102
- text : 'Initializing ...' ,
103
- } ) ;
91
+ // const hideSplashscreen = initSplashScreen({
92
+ // mainWindow: win,
93
+ // icon: resolve('app/src/public/icons/png/64x64.png'),
94
+ // url: OfficeTemplate,
95
+ // width: 500,
96
+ // height: 300,
97
+ // brand: 'OS Labs',
98
+ // productName: 'ReacType',
99
+ // logo: resolve('app/src/public/icons/png/64x64.png'),
100
+ // color: '#3BBCAF',
101
+ // website: 'www.reactype.io',
102
+ // text: 'Initializing ...',
103
+ // });
104
104
// Load app
105
105
if ( isDev ) {
106
106
// load app from web-dev server
@@ -113,7 +113,6 @@ async function createWindow() {
113
113
// load page once window is loaded
114
114
win . once ( 'ready-to-show' , ( ) => {
115
115
win . show ( ) ;
116
- hideSplashscreen ( ) ;
117
116
} ) ;
118
117
119
118
// automatically open DevTools when opening the app
0 commit comments