Skip to content

Commit

Permalink
fix: properly determine if WebContents is offscreen in WebContentsDel…
Browse files Browse the repository at this point in the history
…egate (#16340)
  • Loading branch information
trop[bot] authored and John Kleinschmidt committed Jan 10, 2019
1 parent 1f411d3 commit 1089dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atom/browser/common_web_contents_delegate.cc
Expand Up @@ -187,7 +187,7 @@ void CommonWebContentsDelegate::InitWithWebContents(
// Determien whether the WebContents is offscreen.
auto* web_preferences = WebContentsPreferences::From(web_contents);
offscreen_ =
!web_preferences || web_preferences->IsEnabled(options::kOffscreen);
web_preferences && web_preferences->IsEnabled(options::kOffscreen);

// Create InspectableWebContents.
web_contents_.reset(brightray::InspectableWebContents::Create(
Expand Down

0 comments on commit 1089dd3

Please sign in to comment.