mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
fix: default to system accent color on invalid user color (#47660)
fix: default to system accent color on invalid user color"
This commit is contained in:
@@ -227,7 +227,7 @@ bool Converter<WrappedSkColor>::FromV8(v8::Isolate* isolate,
|
||||
std::string str;
|
||||
if (!gin::ConvertFromV8(isolate, val, &str))
|
||||
return false;
|
||||
*out = electron::ParseCSSColor(str);
|
||||
*out = electron::ParseCSSColor(str).value_or(SK_ColorWHITE);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user