Skip to content

Commit bd4733a

Browse files
wip
1 parent e1c2c0b commit bd4733a

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const { copyFileSync } = require("fs");
33
const options = {
44
platform: "node",
55
bundle: true,
6-
target: 'node20',
6+
target: "node20",
77
external: ["electron"],
88
define: {
99
"process.env.NODE_ENV": `"${process.argv[2] === "--dev" ? "development" : "production"}"`,

src/main/main.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,19 +127,13 @@ function createWindow(): BrowserWindow {
127127
}
128128

129129
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();
135131
});
136132

137133
win.once("ready-to-show", (): void => {
138134
win.show();
139135
win.focus();
140136

141-
mainWindow.webContents.send("assetsPath", path.join(app.getAppPath(), "src/assets"));
142-
143137
if (isDev) {
144138
win.webContents.openDevTools();
145139
}
@@ -428,7 +422,6 @@ ipcMain.on("main:is-always-on-top", (): void => {
428422

429423
ipcMain.on("main:get-app-version", (): void => {
430424
mainWindow.webContents.send("main:app-version", { version: app.getVersion() });
431-
mainWindow.webContents.send("assetsPath", path.join(app.getAppPath(), "src/assets"));
432425
});
433426

434427
ipcMain.on("main:show", (): void => {

0 commit comments

Comments
 (0)