]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - src/App.vue
Toggle dark mode when `prefers-color-scheme` changes
[github/bastienwirtz/homer.git] / src / App.vue
index f2089ee0290d92b2061c4d297c3c15859bba0503..25e943f7d80082515c92a79dbee5f81ea14797e3 100644 (file)
 </template>
 
 <script>
-import jsyaml from "js-yaml";
+import { parse } from "yaml";
 import merge from "lodash.merge";
 
 import Navbar from "./components/Navbar.vue";
@@ -200,7 +200,7 @@ export default {
       }
     },
     buildDashboard: async function () {
-      const defaults = jsyaml.load(defaultConfig);
+      const defaults = parse(defaultConfig);
       let config;
       try {
         config = await this.getConfig();
@@ -245,7 +245,7 @@ export default {
         return response
           .text()
           .then((body) => {
-            return jsyaml.load(body);
+            return parse(body);
           })
           .then(function (config) {
             if (config.externalConfig) {