Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
mousetrap.bind('command+u', () => dispatch({ type: 'publishBlog' }));
mousetrap.bind('command+,', () => dispatch({ type: 'openSettings' }));
if (isDev) {
mousetrap.bind('command+alt+e', () => global.electronStore.clear());
}
// Fire actions from main process.
ipcRenderer.on('action', (_, action) => {
dispatch(action);
});
// Run side effects.
effects.run(appRoot);
// Render the app.
render(
html`
<${App} />
`,
appRoot
);
}
)
})
}
render (props, { markdown }) {
return html`
<div class="markdown-body">
`
}
}
render(
html`
<${App} />
`,
document.body
)
</div>