summaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-17 05:02:49 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-17 05:02:49 +0900
commit616cad97687fdb6a570f8e27ea64814017202ed8 (patch)
treecf44e5b5ea0cd442c84f940489e478d7271754af /src/web
parent[Client] Better design (diff)
downloadmisskey-616cad97687fdb6a570f8e27ea64814017202ed8.tar.gz
misskey-616cad97687fdb6a570f8e27ea64814017202ed8.tar.bz2
misskey-616cad97687fdb6a570f8e27ea64814017202ed8.zip
[Client] Refactor
Diffstat (limited to 'src/web')
-rw-r--r--src/web/app/common/mixins.ls3
-rw-r--r--src/web/app/desktop/tags/drive/file.tag3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/web/app/common/mixins.ls b/src/web/app/common/mixins.ls
index 0a3802e25c..812bcae102 100644
--- a/src/web/app/common/mixins.ls
+++ b/src/web/app/common/mixins.ls
@@ -35,6 +35,3 @@ module.exports = (me) ~>
riot.mixin \ui-progress do
Progress: require './scripts/loading.ls'
-
- riot.mixin \bytes-to-size do
- bytes-to-size: require './scripts/bytes-to-size.js'
diff --git a/src/web/app/desktop/tags/drive/file.tag b/src/web/app/desktop/tags/drive/file.tag
index 941c64b06d..9325e30a46 100644
--- a/src/web/app/desktop/tags/drive/file.tag
+++ b/src/web/app/desktop/tags/drive/file.tag
@@ -144,8 +144,9 @@
</style>
<script>
+ @bytes-to-size = require '../../../common/scripts/bytes-to-size.js'
+
@mixin \i
- @mixin \bytes-to-size
@file = @opts.file
@browser = @parent