build: fix with ENABLE_OSR disabled (#19533)

This commit is contained in:
Milan Burda 2019-07-31 14:34:04 +02:00 committed by Alexey Kuzmin
parent 69646f4258
commit d6605193a1

View file

@ -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