refactor: use ipcRenderer.invoke / ipcMain.handle in default-app (#18581)

This commit is contained in:
Milan Burda 2019-06-04 18:13:35 +02:00 committed by Alexey Kuzmin
parent 74825e4df7
commit 69e32ad9ce
2 changed files with 4 additions and 8 deletions

View file

@ -1,7 +1,7 @@
import { ipcRenderer } from 'electron'
function initialize () {
const electronPath = ipcRenderer.sendSync('bootstrap')
async function initialize () {
const electronPath = await ipcRenderer.invoke('bootstrap')
function replaceText (selector: string, text: string) {
const element = document.querySelector<HTMLElement>(selector)