Make sure webContents is created when opening devtools.

Fixes atom/atom#2270.
This commit is contained in:
Cheng Zhao 2014-05-20 20:58:11 +08:00
parent 754abbd39c
commit 972bb2e9fb
3 changed files with 12 additions and 16 deletions

View file

@ -362,7 +362,7 @@ void Window::BuildPrototype(v8::Isolate* isolate,
.SetMethod("flashFrame", &Window::FlashFrame)
.SetMethod("setKiosk", &Window::SetKiosk)
.SetMethod("isKiosk", &Window::IsKiosk)
.SetMethod("openDevTools", &Window::OpenDevTools)
.SetMethod("_openDevTools", &Window::OpenDevTools)
.SetMethod("closeDevTools", &Window::CloseDevTools)
.SetMethod("isDevToolsOpened", &Window::IsDevToolsOpened)
.SetMethod("inspectElement", &Window::InspectElement)