fix: webContent.fromId should be number instead of string (#48059)

This commit is contained in:
reito 2025-08-22 23:40:10 +08:00 committed by GitHub
commit ceb6d28fd3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -882,7 +882,7 @@ export function create (options = {}): Electron.WebContents {
return new (WebContents as any)(options); return new (WebContents as any)(options);
} }
export function fromId (id: string) { export function fromId (id: number) {
return binding.fromId(id); return binding.fromId(id);
} }