fix: include URI in loaded Resource

This commit is contained in:
cha0s 2019-10-07 06:17:15 -05:00
parent f308ebb469
commit 4342590c56

View File

@ -27,7 +27,10 @@ export class Resource extends decorate(class {}) {
static load(uri) {
return this.read(uri).then((json) => {
return new this(json);
return new this({
uri,
...json,
});
});
}