Tweak type check to consider windows and webviews
This commit is contained in:
parent
85517a1eea
commit
bf791c110f
1 changed files with 3 additions and 1 deletions
|
@ -26,7 +26,9 @@ bool IsWebContents(v8::Isolate* isolate, content::RenderProcessHost* process) {
|
|||
return false;
|
||||
|
||||
auto api_web_contents = WebContents::CreateFrom(isolate, web_contents);
|
||||
return api_web_contents->GetType() != WebContents::Type::REMOTE;
|
||||
auto type = api_web_contents->GetType();
|
||||
return type == WebContents::Type::BROWSER_WINDOW ||
|
||||
type == WebContents::Type::WEB_VIEW;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
Loading…
Reference in a new issue