1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 15:36:59 +08:00

Add: Refresh webapp

This commit is contained in:
LmeSzinc
2021-10-23 14:50:44 +08:00
parent 5b1928697b
commit 3e1de2d73c
2 changed files with 8 additions and 0 deletions

View File

@@ -77,6 +77,13 @@ const createWindow = async () => {
mainWindow?.webContents.openDevTools()
}
});
// Refresh
globalShortcut.register('Ctrl+R', function () {
mainWindow?.reload()
});
globalShortcut.register('Ctrl+Shift+R', function () {
mainWindow?.reload()
});
// Minimize, maximize, close window.
ipcMain.on('window-min', function () {