1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Removed SetTimeout on Markdown Preview Context menu

This commit is contained in:
nathan-castlehow
2019-07-03 11:24:00 +08:00
committed by Junyoung Choi
parent f2a02a25a7
commit caf1f92fef

View File

@@ -248,7 +248,7 @@ export default class MarkdownPreview extends React.Component {
handleContextMenu (event) {
const menu = buildMarkdownPreviewContextMenu(this, event)
if (menu != null) {
setTimeout(() => menu.popup(remote.getCurrentWindow()), 30)
menu.popup(remote.getCurrentWindow())
}
}