refactor: remove WebContents::CreateFrom (#15241)
This commit is contained in:
parent
b3f134de06
commit
94aa0762f0
6 changed files with 85 additions and 51 deletions
|
@ -206,7 +206,7 @@ v8::Local<v8::Value> Converter<content::WebContents*>::ToV8(
|
|||
content::WebContents* val) {
|
||||
if (!val)
|
||||
return v8::Null(isolate);
|
||||
return atom::api::WebContents::CreateFrom(isolate, val).ToV8();
|
||||
return atom::api::WebContents::FromOrCreate(isolate, val).ToV8();
|
||||
}
|
||||
|
||||
// static
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue