electron: fix comment (#13042)

This commit is contained in:
Linda_pp
2016-12-20 23:15:01 +09:00
committed by Masahiro Wakame
parent 642b70be3f
commit e4bb2eead9
2 changed files with 7 additions and 1 deletions
@@ -257,6 +257,12 @@ webview.addEventListener('ipc-message', function(event) {
webview.send('ping');
webview.capturePage((image) => { console.log(image); });
{
const opened: boolean = webview.isDevToolsOpened();
const focused: boolean = webview.isDevToolsFocused();
const focused2: boolean = webview.getWebContents().isFocused();
}
// In guest page.
ipcRenderer.on('ping', function() {
ipcRenderer.sendToHost('pong');
+1 -1
View File
@@ -5528,7 +5528,7 @@ declare namespace Electron {
closeDevTools(): void;
/**
* @returns Whether guest page has a DevTools window attached.
*/
isDevToolsOpened(): boolean;
/**
* @returns Whether DevTools window of guest page is focused.