mirror of https://github.com/lissy93/dashy
⚡ Use absolute path for loading assets
This commit is contained in:
parent
ab6e64af58
commit
151028c8cf
|
@ -10,7 +10,7 @@
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="web-icons/favicon-32x32.png">
|
<link rel="icon" type="image/png" sizes="32x32" href="web-icons/favicon-32x32.png">
|
||||||
<link rel="icon" href="/favicon.ico" />
|
<link rel="icon" href="/favicon.ico" />
|
||||||
<link rel="icon" type="image/png" href="<%= BASE_URL %>favicon.ico" />
|
<link rel="icon" type="image/png" href="<%= BASE_URL %>favicon.ico" />
|
||||||
<link rel="stylesheet" type="text/css" href="loading-screen.css" />
|
<link rel="stylesheet" type="text/css" href="<%= BASE_URL %>loading-screen.css" />
|
||||||
<!-- Default Page Title -->
|
<!-- Default Page Title -->
|
||||||
<title>Dashy</title>
|
<title>Dashy</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -280,7 +280,7 @@ const store = new Vuex.Store({
|
||||||
/* Called when app first loaded. Reads config and sets state */
|
/* Called when app first loaded. Reads config and sets state */
|
||||||
async [INITIALIZE_CONFIG]({ commit }) {
|
async [INITIALIZE_CONFIG]({ commit }) {
|
||||||
// Get the config file from the server and store it for use by the accumulator
|
// 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 deepCopy = (json) => JSON.parse(JSON.stringify(json));
|
||||||
const config = deepCopy(new ConfigAccumulator().config());
|
const config = deepCopy(new ConfigAccumulator().config());
|
||||||
commit(SET_CONFIG, config);
|
commit(SET_CONFIG, config);
|
||||||
|
|
Loading…
Reference in New Issue