From df3440633a0c9bd0e04d56c7c37f83af96fd2f45 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 1 Mar 2017 14:34:26 +0900 Subject: Clean up: Destroy nyaize --- src/web/app/common/scripts/generate-default-userdata.js | 2 -- src/web/app/common/scripts/text-compiler.js | 5 ----- 2 files changed, 7 deletions(-) (limited to 'src/web/app/common/scripts') diff --git a/src/web/app/common/scripts/generate-default-userdata.js b/src/web/app/common/scripts/generate-default-userdata.js index f6c8c2fe58..fbe2e99075 100644 --- a/src/web/app/common/scripts/generate-default-userdata.js +++ b/src/web/app/common/scripts/generate-default-userdata.js @@ -38,8 +38,6 @@ module.exports = () => { const data = { cache: true, - debug: false, - nya: true, home: homeData }; diff --git a/src/web/app/common/scripts/text-compiler.js b/src/web/app/common/scripts/text-compiler.js index c53ee4d45a..2edffbb766 100644 --- a/src/web/app/common/scripts/text-compiler.js +++ b/src/web/app/common/scripts/text-compiler.js @@ -1,5 +1,4 @@ const riot = require('riot'); -const nyaize = require('nyaize').default; //const emojinize = require('emojinize'); const CONFIG = require('./config'); @@ -43,9 +42,5 @@ module.exports = (tokens, shouldBreak) => { .replace(/ /g, '').replace(/<\/code> /g, '') .replace(/
/g, '
').replace(/<\/code><\/pre>
/g, '
'); - if (me && me.data && me.data.nya) { - text = nyaize(text); - } - return text; }; -- cgit v1.2.3-freya