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 10, 2020
1 parent b3c004b commit 79874b0
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 79874b0

Please sign in to comment.