mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
Add basic ReadOnly property support
This commit is contained in:
@@ -26,7 +26,9 @@ namespace CefSharp
|
||||
}
|
||||
else
|
||||
{
|
||||
V8Value->SetValue(methodName, V8_ACCESS_CONTROL_DEFAULT, V8_PROPERTY_ATTRIBUTE_NONE);
|
||||
auto propertyAttribute = _javascriptProperty->IsReadOnly ? V8_PROPERTY_ATTRIBUTE_READONLY : V8_PROPERTY_ATTRIBUTE_NONE;
|
||||
|
||||
V8Value->SetValue(methodName, V8_ACCESS_CONTROL_DEFAULT, propertyAttribute);
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user