Refactoring & 設定でTwemojiを使うかどうか切り替えられるように

This commit is contained in:
syuilo
2018-11-05 19:20:35 +09:00
parent 54e9147782
commit 65961bc15b
13 changed files with 95 additions and 58 deletions

View File

@@ -187,10 +187,10 @@ export default Vue.component('misskey-flavored-markdown', {
}
case 'emoji': {
const { emoji, raw } = token;
const { emoji, name } = token;
const { customEmojis } = this;
return [createElement('mk-emoji', {
attrs: { emoji, raw },
attrs: { emoji, name },
props: { customEmojis }
})];
}