Newer
Older
// Copyright 2015-2019 Parity Technologies (UK) Ltd.
import { bundledParityPath } from '../utils/paths';
/**
* Handle all asynchronous messages from renderer to main.
*/
export default async (fetherApp, event, action, ...args) => {
case 'app-right-click': {
if (!fetherApp.win) {
return;
}
Luke Schoen
committed
fetherApp.contextWindowMenu.getMenu().popup({ window: fetherApp.win });
case 'check-clock-sync': {
checkClockSync().then(t => {
event.sender.send('check-clock-sync-reply', t);
const token = await signerNewToken({ parityPath: bundledParityPath });
event.sender.send('signer-new-token-reply', token);