@@ -11,13 +11,13 @@ const store = new Store();
1111const executeJavaScript = ( win , script ) =>
1212 win . webContents . executeJavaScript ( script ) ;
1313
14- export const checkWindowInfo = win =>
14+ export const checkWindowInfo = ( win ) =>
1515 executeJavaScript ( win , 'window.checkWindowInfo()' ) ;
1616
17- const checkIsOpenInEditorEnabled = win =>
17+ const checkIsOpenInEditorEnabled = ( win ) =>
1818 executeJavaScript ( win , 'window.isOpenInEditorEnabled()' ) ;
1919
20- const changeMenuItems = menus => {
20+ const changeMenuItems = ( menus ) => {
2121 const rootMenuItems = Menu . getApplicationMenu ( ) . items ;
2222 Object . entries ( menus ) . forEach ( ( [ key , subMenu ] ) => {
2323 const rootMenuItem = rootMenuItems . find ( ( { label } ) => label === key ) ;
@@ -40,7 +40,7 @@ const invokeDevMethod = (win, name) =>
4040 `window.invokeDevMethod && window.invokeDevMethod('${ name } ')` ,
4141 ) ;
4242
43- const registerKeyboradShortcut = win => {
43+ const registerKeyboradShortcut = ( win ) => {
4444 const prefix = process . platform === 'darwin' ? 'Command' : 'Ctrl' ;
4545 // If another window focused, register a new shortcut
4646 if (
@@ -57,7 +57,7 @@ const registerKeyboradShortcut = win => {
5757
5858const unregisterKeyboradShortcut = ( ) => globalShortcut . unregisterAll ( ) ;
5959
60- const registerShortcuts = async win => {
60+ const registerShortcuts = async ( win ) => {
6161 registerKeyboradShortcut ( win ) ;
6262 changeMenuItems ( {
6363 Debugger : {
@@ -137,14 +137,6 @@ export const createWindow = ({ iconPath, isPortSettingRequired, port }) => {
137137 removeUnecessaryTabs ( win ) ;
138138 }
139139 selectRNDebuggerWorkerContext ( win ) ;
140- setTimeout (
141- ( ) =>
142- executeJavaScript (
143- win ,
144- 'window.logWelcomeMessage && window.logWelcomeMessage()' ,
145- ) ,
146- 1e3 ,
147- ) ;
148140 } ) ;
149141 win . on ( 'show' , ( ) => {
150142 if ( ! win . isFocused ( ) ) return ;
@@ -165,7 +157,7 @@ export const createWindow = ({ iconPath, isPortSettingRequired, port }) => {
165157 ) ;
166158 win . destroy ( ) ;
167159 } ;
168- win . on ( 'close' , event => {
160+ win . on ( 'close' , ( event ) => {
169161 event . preventDefault ( ) ;
170162 win . close ( ) ;
171163 } ) ;
0 commit comments