mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-11 06:46:03 +00:00
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.realm] = realmId;
|
||||||
this[keys.type] = internal.REALM;
|
this[keys.type] = internal.REALM;
|
||||||
this[notificationsKey] = [];
|
this[notificationsKey] = [];
|
||||||
|
|
||||||
|
[
|
||||||
|
'path',
|
||||||
|
'schemaVersion',
|
||||||
|
].forEach((name) => {
|
||||||
|
Object.defineProperty(this, name, {get: util.getterForProperty(name)});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
addNotification(callback) {
|
addNotification(callback) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user