mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-28 23:35:05 +00:00
Add undocumented _automaticChangeNotifications config option
This commit is contained in:
parent
19f04253a7
commit
290485134e
@ -568,6 +568,12 @@ void RealmClass<T>::constructor(ContextType ctx, ObjectType this_object, size_t
|
|||||||
config.cache = Value::validated_to_boolean(ctx, cache_value, "_cache");
|
config.cache = Value::validated_to_boolean(ctx, cache_value, "_cache");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const String automatic_change_notifications_string = "_automaticChangeNotifications";
|
||||||
|
ValueType automatic_change_notifications_value = Object::get_property(ctx, object, automatic_change_notifications_string);
|
||||||
|
if (!Value::is_undefined(ctx, automatic_change_notifications_value)) {
|
||||||
|
config.automatic_change_notifications = Value::validated_to_boolean(ctx, automatic_change_notifications_value, "_automaticChangeNotifications");
|
||||||
|
}
|
||||||
|
|
||||||
static const String disable_format_upgrade_string = "disableFormatUpgrade";
|
static const String disable_format_upgrade_string = "disableFormatUpgrade";
|
||||||
ValueType disable_format_upgrade_value = Object::get_property(ctx, object, disable_format_upgrade_string);
|
ValueType disable_format_upgrade_value = Object::get_property(ctx, object, disable_format_upgrade_string);
|
||||||
if (!Value::is_undefined(ctx, disable_format_upgrade_value)) {
|
if (!Value::is_undefined(ctx, disable_format_upgrade_value)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user