aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/App.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/App.vue')
-rw-r--r--src/App.vue7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/App.vue b/src/App.vue
index 03970ed..cd1d9ba 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -13,7 +13,7 @@
13 <section v-if="config.header" class="first-line"> 13 <section v-if="config.header" class="first-line">
14 <div v-cloak class="container"> 14 <div v-cloak class="container">
15 <div class="logo"> 15 <div class="logo">
16 <a href="/"><img v-if="config.logo" :src="config.logo" alt="dashboard logo" /></a> 16 <a href="#"><img v-if="config.logo" :src="config.logo" alt="dashboard logo" /></a>
17 <i v-if="config.icon" :class="config.icon"></i> 17 <i v-if="config.icon" :class="config.icon"></i>
18 </div> 18 </div>
19 <div class="dashboard-title"> 19 <div class="dashboard-title">
@@ -151,11 +151,12 @@ export default {
151 created: async function () { 151 created: async function () {
152 const defaults = jsyaml.load(defaultConfig); 152 const defaults = jsyaml.load(defaultConfig);
153 let config; 153 let config;
154 window.onhashchange = function() { location.reload(); };
154 try { 155 try {
155 config = await this.getConfig(); 156 config = await this.getConfig();
156 const path = (window.location.pathname != '/') ? window.location.pathname : null; 157 const path = (window.location.hash.substring(1) != '') ? window.location.hash.substring(1) : null;
157 if (path) { 158 if (path) {
158 let pathConfig = await this.getConfig(`assets${path}.yml`); // the slash (/) is included in the pathname 159 let pathConfig = await this.getConfig(`assets/${path}.yml`); // the slash (/) is included in the pathname
159 for (const prop in pathConfig) config[prop] = pathConfig[prop]; 160 for (const prop in pathConfig) config[prop] = pathConfig[prop];
160 } 161 }
161 // config = await this.getConfig(path ? `assets/${path}.yml` : null); 162 // config = await this.getConfig(path ? `assets/${path}.yml` : null);