File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const { copyFileSync } = require("fs");
3
3
const options = {
4
4
platform : "node" ,
5
5
bundle : true ,
6
- target : ' node20' ,
6
+ target : " node20" ,
7
7
external : [ "electron" ] ,
8
8
define : {
9
9
"process.env.NODE_ENV" : `"${ process . argv [ 2 ] === "--dev" ? "development" : "production" } "` ,
Original file line number Diff line number Diff line change @@ -127,19 +127,13 @@ function createWindow(): BrowserWindow {
127
127
}
128
128
129
129
electronLocalShortcut . register ( "CommandOrControl+Shift+X" , ( ) : void => {
130
- window . ipcRenderer . send ( "ssh:disconnect" ) ;
131
- setTimeout ( ( ) => {
132
- mainWindow . reload ( ) ;
133
- mainWindow . webContents . send ( "assetsPath" , path . join ( app . getAppPath ( ) , "src/assets" ) ) ;
134
- } , 30 ) ;
130
+ mainWindow . reload ( ) ;
135
131
} ) ;
136
132
137
133
win . once ( "ready-to-show" , ( ) : void => {
138
134
win . show ( ) ;
139
135
win . focus ( ) ;
140
136
141
- mainWindow . webContents . send ( "assetsPath" , path . join ( app . getAppPath ( ) , "src/assets" ) ) ;
142
-
143
137
if ( isDev ) {
144
138
win . webContents . openDevTools ( ) ;
145
139
}
@@ -428,7 +422,6 @@ ipcMain.on("main:is-always-on-top", (): void => {
428
422
429
423
ipcMain . on ( "main:get-app-version" , ( ) : void => {
430
424
mainWindow . webContents . send ( "main:app-version" , { version : app . getVersion ( ) } ) ;
431
- mainWindow . webContents . send ( "assetsPath" , path . join ( app . getAppPath ( ) , "src/assets" ) ) ;
432
425
} ) ;
433
426
434
427
ipcMain . on ( "main:show" , ( ) : void => {
You can’t perform that action at this time.
0 commit comments