summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-11-05 20:49:02 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-11-05 20:49:02 +0900
commit3fc04fcdc536d32213407d25f6c45387f68d0070 (patch)
tree362eda978a35f2a4eeb5fd5e2d23def2afe40c36 /src/client
parentFix test (diff)
downloadsharkey-3fc04fcdc536d32213407d25f6c45387f68d0070.tar.gz
sharkey-3fc04fcdc536d32213407d25f6c45387f68d0070.tar.bz2
sharkey-3fc04fcdc536d32213407d25f6c45387f68d0070.zip
Improve readdability
Diffstat (limited to 'src/client')
-rw-r--r--src/client/app/common/views/components/misskey-flavored-markdown.ts11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/client/app/common/views/components/misskey-flavored-markdown.ts b/src/client/app/common/views/components/misskey-flavored-markdown.ts
index dd111aba05..2a0a2b6f67 100644
--- a/src/client/app/common/views/components/misskey-flavored-markdown.ts
+++ b/src/client/app/common/views/components/misskey-flavored-markdown.ts
@@ -187,11 +187,14 @@ export default Vue.component('misskey-flavored-markdown', {
}
case 'emoji': {
- const { emoji, name } = token;
- const { customEmojis } = this;
return [createElement('mk-emoji', {
- attrs: { emoji, name },
- props: { customEmojis }
+ attrs: {
+ emoji: token.emoji,
+ name: token.name
+ },
+ props: {
+ customEmojis: this.customEmojis
+ }
})];
}