mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
s/label/text
This commit is contained in:
@@ -29,14 +29,14 @@ struct Converter<brightray::NotificationAction> {
|
||||
if (!dict.Get("type", &(out->type))) {
|
||||
return false;
|
||||
}
|
||||
dict.Get("label", &(out->label));
|
||||
dict.Get("text", &(out->text));
|
||||
return true;
|
||||
}
|
||||
|
||||
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,
|
||||
brightray::NotificationAction val) {
|
||||
mate::Dictionary dict = mate::Dictionary::CreateEmpty(isolate);
|
||||
dict.Set("label", val.label);
|
||||
dict.Set("text", val.text);
|
||||
dict.Set("type", val.type);
|
||||
return dict.GetHandle();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user