Add path and schemaVersion getters to realm object
This commit is contained in:
parent
1b7653206a
commit
d172b43535
|
@ -43,6 +43,13 @@ class Realm {
|
|||
this[keys.realm] = realmId;
|
||||
this[keys.type] = internal.REALM;
|
||||
this[notificationsKey] = [];
|
||||
|
||||
[
|
||||
'path',
|
||||
'schemaVersion',
|
||||
].forEach((name) => {
|
||||
Object.defineProperty(this, name, {get: util.getterForProperty(name)});
|
||||
});
|
||||
}
|
||||
|
||||
addNotification(callback) {
|
||||
|
|
Loading…
Reference in New Issue