projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Draft Fullcavalry and Atomic2 (pawn removal). Fix Grand
[vchess.git]
/
client
/
src
/
views
/
Faq.vue
diff --git
a/client/src/views/Faq.vue
b/client/src/views/Faq.vue
index
7164717
..
05b1e25
100644
(file)
--- a/
client/src/views/Faq.vue
+++ b/
client/src/views/Faq.vue
@@
-7,6
+7,7
@@
main
<script>
import { store } from "@/store";
<script>
import { store } from "@/store";
+import afterRawLoad from "@/utils/afterRawLoad";
export default {
name: "my-faq",
data: function() {
export default {
name: "my-faq",
data: function() {
@@
-14,14
+15,12
@@
export default {
},
computed: {
content: function() {
},
computed: {
content: function() {
- // (AJAX) Request to get FAQ content (plain text, HTML)
return (
return (
- require("raw-loader!@/translations/faq/" + this.st.lang + ".pug")
- // Next two lines fix a weird issue after last update (2019-11)
- .replace(/\\n/g, " ")
- .replace(/\\"/g, '"')
- .replace('module.exports = "', "")
- .replace(/"$/, "")
+ afterRawLoad(
+ require(
+ "raw-loader!@/translations/faq/" + this.st.lang + ".pug"
+ ).default
+ )
);
}
},
);
}
},