Skip to content

Commit

Permalink
bugfix: add timestamp to gui.json for caching problems
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <meteyou@gmail.com>
  • Loading branch information
meteyou committed Aug 3, 2020
1 parent 7a75f6f commit 707330e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default {

getDirectoryRoot({ commit }, data) {
if (data.files && data.files.filter((file) => file.filename === "gui.json")) {
fetch('http://'+store.state.socket.hostname+':'+store.state.socket.port+'/server/files/gcodes/gui.json')
fetch('http://'+store.state.socket.hostname+':'+store.state.socket.port+'/server/files/gcodes/gui.json?time='+Date.now())
.then(res => res.json()).then(file => {
commit('setSettings', file);
});
Expand Down

0 comments on commit 707330e

Please sign in to comment.