mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
electron: fix comment (#13042)
This commit is contained in:
committed by
Masahiro Wakame
parent
642b70be3f
commit
e4bb2eead9
@@ -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');
|
||||
|
||||
Vendored
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user