marktext/src/main/menu/actions/help.js
Ran Luo d4e8bae233 fix #1508 (#1536)
* fix #1508

* add win is not null check
2019-10-26 18:06:38 +02:00

12 lines
260 B
JavaScript

export const showAboutDialog = win => {
if (win && win.webContents) {
win.webContents.send('AGANI::about-dialog')
}
}
export const showTweetDialog = (win, type) => {
if (win && win.webContents) {
win.webContents.send('AGANI::tweet', type)
}
}