fix: use isEqual instead of pointer equality to convert NSAppearance (#18665)
This commit is contained in:
parent
b10c946564
commit
a9f601612f
1 changed files with 2 additions and 2 deletions
|
@ -66,11 +66,11 @@ struct Converter<NSAppearance*> {
|
|||
return v8::Null(isolate);
|
||||
}
|
||||
|
||||
if (val.name == NSAppearanceNameAqua) {
|
||||
if ([val.name isEqualToString:NSAppearanceNameAqua]) {
|
||||
return mate::ConvertToV8(isolate, "light");
|
||||
}
|
||||
if (@available(macOS 10.14, *)) {
|
||||
if (val.name == NSAppearanceNameDarkAqua) {
|
||||
if ([val.name isEqualToString:NSAppearanceNameDarkAqua]) {
|
||||
return mate::ConvertToV8(isolate, "dark");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue