'use strict';
const ipc = require('ipc');

ipc.on('shortcut-pressed', shortcut => {
	document.querySelector('#shortcut-title').textContent = shortcut;
});

ipc.on('shortcut-status', status => {
	document.querySelector('#shortcut-status').textContent = status;
});

'use strict';

const {ipcRenderer} = require('electron');

ipcRenderer.on('shortcut-pressed', (e, shortcut) => {
	document.querySelector('#shortcut-title').textContent = shortcut;
});

ipcRenderer.on('shortcut-status', (e, status) => {
	document.querySelector('#shortcut-status').textContent = status;
});

Update source as following update Electron
Update source as following update Electron
