Skip to content

Commit

Permalink
fix: BrowserView setBackgroundColor()
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Nov 8, 2021
1 parent 97eb424 commit c8a169f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shell/browser/api/electron_api_browser_view.cc
Expand Up @@ -147,7 +147,8 @@ gfx::Rect BrowserView::GetBounds() {
}

void BrowserView::SetBackgroundColor(const std::string& color_name) {
view_->SetBackgroundColor(ParseHexColor(color_name));
auto* wc = web_contents()->web_contents();
wc->SetPageBaseBackgroundColor(ParseHexColor(color_name));
}

v8::Local<v8::Value> BrowserView::GetWebContents(v8::Isolate* isolate) {
Expand Down

0 comments on commit c8a169f

Please sign in to comment.