mirror of
https://github.com/electron/electron.git
synced 2026-01-27 00:09:09 -05:00
A quick fix for crashing when closing devtools
This commit is contained in:
@@ -310,6 +310,7 @@ void InspectableWebContentsImpl::ShowDevTools() {
|
||||
|
||||
void InspectableWebContentsImpl::CloseDevTools() {
|
||||
if (devtools_web_contents_) {
|
||||
frontend_loaded_ = false;
|
||||
view_->CloseDevTools();
|
||||
devtools_web_contents_.reset();
|
||||
web_contents_->Focus();
|
||||
|
||||
Reference in New Issue
Block a user