Skip to content

Commit ec4bbb2

Browse files
committed
Reload package manifest on user package installation (#106)
1 parent 46e895b commit ec4bbb2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/packages.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,12 @@ export default class Packages {
361361
},
362362
body: JSON.stringify(body)
363363
})
364-
.then(response => response.json());
364+
.then(response => response.json())
365+
.then((body) => {
366+
if (body.reload) {
367+
this.init();
368+
}
369+
});
365370
}
366371

367372
/**

0 commit comments

Comments
 (0)