build: fix with ENABLE_OSR disabled (#19533)
This commit is contained in:
parent
69646f4258
commit
d6605193a1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue