Fix 8-pieces
[vchess.git] / client / src / views / About.vue
index 47a740d..9a12c82 100644 (file)
@@ -7,23 +7,27 @@ main
 
 <script>
 import { store } from "@/store";
-
+import afterRawLoad from "@/utils/afterRawLoad";
 export default {
-  name: 'my-about',
+  name: "my-about",
   computed: {
     content: function() {
-      return require("raw-loader!@/translations/about/" + store.state.lang + ".pug")
-        // Next two lines fix a weird issue after last update (2019-11)
-        .replace(/\\[n"]/g, " ")
-        .replace('module.exports = "', '').replace(/"$/, "");
-    },
-  },
+      return (
+        afterRawLoad(
+          require(
+            "raw-loader!@/translations/about/" + store.state.lang + ".pug"
+          ).default
+        )
+      );
+    }
+  }
 };
 </script>
 
+<!-- Not scoped, because code is injected -->
 <style lang="sass">
 #links
-  margin: var(--universal-margin);
+  margin: var(--universal-margin)
   & > a
     display: block
 </style>