X-Git-Url: https://git.auder.net/?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fviews%2FVariants.vue;h=f0a98edd50dc7bfb03a2e9efaa8a92f08c6d8604;hb=8b3b2151048df82b70502c84c4f45c9ce2d5ca88;hp=d638b0759c949fa6d499aec29c687c3b67d16605;hpb=8b2bfa47c7ccda3534897adc89e6fd1e524fb1e3;p=vchess.git diff --git a/client/src/views/Variants.vue b/client/src/views/Variants.vue index d638b075..f0a98edd 100644 --- a/client/src/views/Variants.vue +++ b/client/src/views/Variants.vue @@ -20,12 +20,14 @@ export default { content: function() { // (AJAX) Request to get rules content (plain text, HTML) return ( - require("raw-loader!@/translations/variants/" + this.st.lang + ".pug") + require( + "raw-loader!@/translations/variants/" + this.st.lang + ".pug" + ).default + .replace('export default "', "") + .replace(/";$/, "") // Next two lines fix a weird issue after last update (2019-11) .replace(/\\n/g, " ") .replace(/\\"/g, '"') - .replace('module.exports = "', "") - .replace(/"$/, "") ); } },