diff options
Diffstat (limited to 'src/App.vue')
-rw-r--r-- | src/App.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/App.vue b/src/App.vue index f2089ee..25e943f 100644 --- a/src/App.vue +++ b/src/App.vue | |||
@@ -141,7 +141,7 @@ | |||
141 | </template> | 141 | </template> |
142 | 142 | ||
143 | <script> | 143 | <script> |
144 | import jsyaml from "js-yaml"; | 144 | import { parse } from "yaml"; |
145 | import merge from "lodash.merge"; | 145 | import merge from "lodash.merge"; |
146 | 146 | ||
147 | import Navbar from "./components/Navbar.vue"; | 147 | import Navbar from "./components/Navbar.vue"; |
@@ -200,7 +200,7 @@ export default { | |||
200 | } | 200 | } |
201 | }, | 201 | }, |
202 | buildDashboard: async function () { | 202 | buildDashboard: async function () { |
203 | const defaults = jsyaml.load(defaultConfig); | 203 | const defaults = parse(defaultConfig); |
204 | let config; | 204 | let config; |
205 | try { | 205 | try { |
206 | config = await this.getConfig(); | 206 | config = await this.getConfig(); |
@@ -245,7 +245,7 @@ export default { | |||
245 | return response | 245 | return response |
246 | .text() | 246 | .text() |
247 | .then((body) => { | 247 | .then((body) => { |
248 | return jsyaml.load(body); | 248 | return parse(body); |
249 | }) | 249 | }) |
250 | .then(function (config) { | 250 | .then(function (config) { |
251 | if (config.externalConfig) { | 251 | if (config.externalConfig) { |