diff --git a/lib/browser/api/web-contents.ts b/lib/browser/api/web-contents.ts index 14879f3fdd7..dde4432a6dd 100644 --- a/lib/browser/api/web-contents.ts +++ b/lib/browser/api/web-contents.ts @@ -882,7 +882,7 @@ export function create (options = {}): Electron.WebContents { return new (WebContents as any)(options); } -export function fromId (id: string) { +export function fromId (id: number) { return binding.fromId(id); }