Fix About page
[vchess.git] / client / src / views / About.vue
index 4441494..ca6c7c1 100644 (file)
@@ -7,16 +7,17 @@ main
 
 <script>
 import { store } from "@/store";
+import afterRawLoad from "@/utils/afterRawLoad";
 export default {
   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(/"$/, "")
+        afterRawLoad(
+          require(
+            "raw-loader!@/translations/about/" + store.state.lang + ".pug"
+          ).default
+        )
       );
     }
   }