Skip to content

Commit

Permalink
build: fix with ENABLE_OSR disabled (#19533)
Browse files Browse the repository at this point in the history
  • Loading branch information
miniak authored and alexeykuzmin committed Jul 31, 2019
1 parent 69646f4 commit d660519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/browser/api/atom_api_web_contents.cc
Expand Up @@ -348,8 +348,8 @@ WebContents::WebContents(v8::Isolate* isolate, const mate::Dictionary& options)
// Get type
options.Get("type", &type_);

bool b = false;
#if BUILDFLAG(ENABLE_OSR)
bool b = false;
if (options.Get(options::kOffscreen, &b) && b)
type_ = Type::OFF_SCREEN;
#endif
Expand Down

0 comments on commit d660519

Please sign in to comment.