Fix using an null dictionary.
This commit is contained in:
parent
a365e0b032
commit
e8bf798b52
1 changed files with 1 additions and 1 deletions
|
@ -355,8 +355,8 @@ bool Window::IsCrashed() {
|
||||||
}
|
}
|
||||||
|
|
||||||
mate::Dictionary Window::GetDevTools(v8::Isolate* isolate) {
|
mate::Dictionary Window::GetDevTools(v8::Isolate* isolate) {
|
||||||
|
mate::Dictionary dict(mate::Dictionary::CreateEmpty(isolate));
|
||||||
content::WebContents* web_contents = window_->GetDevToolsWebContents();
|
content::WebContents* web_contents = window_->GetDevToolsWebContents();
|
||||||
mate::Dictionary dict(isolate);
|
|
||||||
dict.Set("processId", web_contents->GetRenderProcessHost()->GetID());
|
dict.Set("processId", web_contents->GetRenderProcessHost()->GetID());
|
||||||
dict.Set("routingId", web_contents->GetRoutingID());
|
dict.Set("routingId", web_contents->GetRoutingID());
|
||||||
return dict;
|
return dict;
|
||||||
|
|
Loading…
Reference in a new issue