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
parent e12ab6708e
commit ceb6d28fd3

View File

@@ -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);
}