Skip to content

Commit

Permalink
fix(extensions): open background page devtools detached by default
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmaddock committed Mar 2, 2020
1 parent 6b66e5e commit d7c71b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shell/browser/api/electron_api_web_contents.cc
Expand Up @@ -1619,7 +1619,8 @@ void WebContents::OpenDevTools(gin_helper::Arguments* args) {
return;

std::string state;
if (type_ == Type::WEB_VIEW || !owner_window()) {
if (type_ == Type::WEB_VIEW || type_ == Type::BACKGROUND_PAGE ||
!owner_window()) {
state = "detach";
}
bool activate = true;
Expand Down

0 comments on commit d7c71b8

Please sign in to comment.