feat: add label property to Display objects (#36855)

This commit is contained in:
Milan Burda 2023-01-18 07:44:40 +01:00 committed by GitHub
parent a7bc579220
commit 2c56a06ad3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View file

@ -144,6 +144,7 @@ v8::Local<v8::Value> Converter<display::Display>::ToV8(
gin_helper::Dictionary dict = gin::Dictionary::CreateEmpty(isolate);
dict.SetHidden("simple", true);
dict.Set("id", val.id());
dict.Set("label", val.label());
dict.Set("bounds", val.bounds());
dict.Set("workArea", val.work_area());
dict.Set("accelerometerSupport", val.accelerometer_support());