processid (프로세스 ID)

Default Font

디폴트 폰트는 아래와 같음

defaultFontFamily Object (optional) - Sets the default font for the font-family. standard String (optional) - Defaults to Times New Roman. serif String (optional) - Defaults to Times New Roman. sansSerif String (optional) - Defaults to Arial. monospace String (optional) - Defaults to Courier New. cursive String (optional) - Defaults to Script. fantasy String (optional) - Defaults to Impact.

아래와 같이 세팅하면됨.

webPreferences: {
...
	defaultFontFamily: {
	  standard: 'Arial',
	},
...
}

링크 클릭 시 새로운 윈도우 창 안나오게 하려면?

win.webContents.on('new-window', (event, url) => {
    event.preventDefault();
    win.webContents.loadURL(url);  
})

javascript 코드 실행

this.webContents.executeJavaScript(`console.log('aaaa')`);

Destory