Skip to content

Commit

Permalink
Reload package manifest on user package installation (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
andersevenrud committed Apr 11, 2020
1 parent 46e895b commit ec4bbb2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,12 @@ export default class Packages {
},
body: JSON.stringify(body)
})
.then(response => response.json());
.then(response => response.json())
.then((body) => {
if (body.reload) {
this.init();
}
});
}

/**
Expand Down

0 comments on commit ec4bbb2

Please sign in to comment.