summaryrefslogtreecommitdiff
path: root/packages/client/src/components/mfm.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-12-29 13:14:19 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-12-29 13:14:19 +0900
commitc537a0ba932c0af4023e36d7fc3e9b47f69eaa2b (patch)
treed3c8013c23b6db4a4c10f63c1e2e64e0bf814385 /packages/client/src/components/mfm.ts
parentMerge branch 'develop' of https://github.com/misskey-dev/misskey into develop (diff)
downloadmisskey-c537a0ba932c0af4023e36d7fc3e9b47f69eaa2b.tar.gz
misskey-c537a0ba932c0af4023e36d7fc3e9b47f69eaa2b.tar.bz2
misskey-c537a0ba932c0af4023e36d7fc3e9b47f69eaa2b.zip
enhance(client): :sparkles:
Diffstat (limited to 'packages/client/src/components/mfm.ts')
-rw-r--r--packages/client/src/components/mfm.ts9
1 files changed, 1 insertions, 8 deletions
diff --git a/packages/client/src/components/mfm.ts b/packages/client/src/components/mfm.ts
index d1da365d9a..2e6d26476a 100644
--- a/packages/client/src/components/mfm.ts
+++ b/packages/client/src/components/mfm.ts
@@ -175,14 +175,7 @@ export default defineComponent({
if (!this.$store.state.animatedMfm) {
return genEl(token.children);
}
- let count = token.props.args.count ? parseInt(token.props.args.count) : 10;
- if (count > 100) {
- count = 100;
- }
- const speed = token.props.args.speed ? parseFloat(token.props.args.speed) : 1;
- return h(MkSparkle, {
- count, speed,
- }, genEl(token.children));
+ return h(MkSparkle, {}, genEl(token.children));
}
case 'rotate': {
const degrees = parseInt(token.props.args.deg) || '90';