From 026bbfeb7a0467c63cdd1df563129bb6499b6709 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Thu, 6 Oct 2016 07:37:30 -0700 Subject: [PATCH] Update Electron.WebContents (#11748) * electron: Remove WebContents.getFavicon() This was removed in electron/electron#1554 * electron: Add missing WebContents.{isDestroyed,isFocused} See http://electron.atom.io/docs/api/web-contents --- electron/index.d.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/electron/index.d.ts b/electron/index.d.ts index 3344847224..612e9e4ab0 100644 --- a/electron/index.d.ts +++ b/electron/index.d.ts @@ -3967,9 +3967,13 @@ declare namespace Electron { */ getTitle(): string; /** - * @returns The favicon of the web page. + * @returns Whether the web page is destroyed. */ - getFavicon(): NativeImage; + isDestroyed(): boolean; + /** + * @returns Whether the web page is focused. + */ + isFocused(): boolean; /** * @returns Whether web page is still loading resources. */