main: add missing types
This commit is contained in:
1 parent
e4f9c0fb16
commit
e4b3b8585a
1 file changed
+2
-2
+2
-2
@@ -5,14 +5,14 @@ import Constants from './utils/Constants'
|
||||
* IPC Communications
|
||||
* */
|
||||
export default class IPCs {
|
||||
static initialize(window: BrowserWindow) {
|
||||
static initialize(window: BrowserWindow): void {
|
||||
// Get application version
|
||||
ipcMain.on('msgRequestGetVersion', () => {
|
||||
window.webContents.send('msgReceivedVersion', Constants.APP_VERSION)
|
||||
})
|
||||
|
||||
// Open url via web browser
|
||||
ipcMain.on('msgOpenExternalLink', async (event, url) => {
|
||||
ipcMain.on('msgOpenExternalLink', async (event, url: string) => {
|
||||
await shell.openExternal(url)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user