File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,13 @@ function bootstrap() {
48
48
// initialization and is ready to create browser windows.
49
49
// Some APIs can only be used after this event occurs.
50
50
app . whenReady ( ) . then ( ( ) => {
51
+ // Default open or close DevTools by F12 in development
52
+ // and ignore CommandOrControl + R in production.
53
+ // see https://github.com/alex8088/electron-toolkit/tree/master/packages/utils
54
+ app . on ( "browser-window-created" , ( _ , window ) => {
55
+ optimizer . watchWindowShortcuts ( window )
56
+ } )
57
+
51
58
// Set app user model id for windows
52
59
electronApp . setAppUserModelId ( `re.${ APP_PROTOCOL } ` )
53
60
@@ -87,13 +94,6 @@ function bootstrap() {
87
94
url && handleOpen ( url )
88
95
} )
89
96
90
- // Default open or close DevTools by F12 in development
91
- // and ignore CommandOrControl + R in production.
92
- // see https://github.com/alex8088/electron-toolkit/tree/master/packages/utils
93
- app . on ( "browser-window-created" , ( _ , window ) => {
94
- optimizer . watchWindowShortcuts ( window )
95
- } )
96
-
97
97
// for dev debug
98
98
99
99
if ( process . env . NODE_ENV === "development" ) {
You can’t perform that action at this time.
0 commit comments