From 151028c8cf0f8759d5d19fa0860516acb6f86559 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Wed, 6 Apr 2022 00:04:07 +0100 Subject: [PATCH] :zap: Use absolute path for loading assets --- public/index.html | 2 +- src/store.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index 774f7c1d..e0fb4dfe 100644 --- a/public/index.html +++ b/public/index.html @@ -10,7 +10,7 @@ - + Dashy diff --git a/src/store.js b/src/store.js index e453628a..99ad474b 100644 --- a/src/store.js +++ b/src/store.js @@ -280,7 +280,7 @@ const store = new Vuex.Store({ /* Called when app first loaded. Reads config and sets state */ async [INITIALIZE_CONFIG]({ commit }) { // Get the config file from the server and store it for use by the accumulator - commit(SET_REMOTE_CONFIG, yaml.load((await axios.get('conf.yml')).data)); + commit(SET_REMOTE_CONFIG, yaml.load((await axios.get('/conf.yml')).data)); const deepCopy = (json) => JSON.parse(JSON.stringify(json)); const config = deepCopy(new ConfigAccumulator().config()); commit(SET_CONFIG, config);