main: add missing types

This commit is contained in:
leejooy96 committed 2023-02-13 18:26:19 +09:00
1 parent e4f9c0fb16
commit e4b3b8585a
1 file changed
+2 -2
+2 -2
View File
@@ -5,14 +5,14 @@ import Constants from './utils/Constants'
* IPC Communications * IPC Communications
* */ * */
export default class IPCs { export default class IPCs {
static initialize(window: BrowserWindow) { static initialize(window: BrowserWindow): void {
// Get application version // Get application version
ipcMain.on('msgRequestGetVersion', () => { ipcMain.on('msgRequestGetVersion', () => {
window.webContents.send('msgReceivedVersion', Constants.APP_VERSION) window.webContents.send('msgReceivedVersion', Constants.APP_VERSION)
}) })
// Open url via web browser // Open url via web browser
ipcMain.on('msgOpenExternalLink', async (event, url) => { ipcMain.on('msgOpenExternalLink', async (event, url: string) => {
await shell.openExternal(url) await shell.openExternal(url)
}) })
} }