From ceb6d28fd3af745c49a65ffc06bd0533a9607595 Mon Sep 17 00:00:00 2001 From: reito Date: Fri, 22 Aug 2025 23:40:10 +0800 Subject: [PATCH] fix: webContent.fromId should be number instead of string (#48059) --- lib/browser/api/web-contents.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }