mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
force devtools to show as undocked.
This commit is contained in:
@@ -376,6 +376,9 @@ void WebContents::ExecuteJavaScript(const base::string16& code) {
|
||||
|
||||
void WebContents::OpenDevTools() {
|
||||
inspectable_web_contents()->ShowDevTools();
|
||||
|
||||
// force the inspectable web contents to be undocked when it is opened.
|
||||
inspectable_web_contents()->GetView()->SetIsDocked(false);
|
||||
}
|
||||
|
||||
bool WebContents::SendIPCMessage(const base::string16& channel,
|
||||
|
||||
Reference in New Issue
Block a user