From 6dd635ddf3d0928bb0a283a21f342ff05e8e61ba Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 7 Jun 2017 00:04:28 +0900 Subject: Fix bug --- src/web/app/common/mixins/index.js | 4 ++-- src/web/app/common/mixins/stream.js | 8 ++------ 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'src/web/app/common') diff --git a/src/web/app/common/mixins/index.js b/src/web/app/common/mixins/index.js index 29cb6c9b6a..9718ee949b 100644 --- a/src/web/app/common/mixins/index.js +++ b/src/web/app/common/mixins/index.js @@ -2,8 +2,8 @@ import activateMe from './i'; import activateApi from './api'; import activateStream from './stream'; -export default me => { +export default (me, stream) => { activateMe(me); activateApi(me); - activateStream(me); + activateStream(stream); }; diff --git a/src/web/app/common/mixins/stream.js b/src/web/app/common/mixins/stream.js index e3b616a1a5..4706042b04 100644 --- a/src/web/app/common/mixins/stream.js +++ b/src/web/app/common/mixins/stream.js @@ -1,9 +1,5 @@ import * as riot from 'riot'; -import Connection from '../scripts/stream'; -export default me => { - const stream = me ? new Connection(me) : null; - riot.mixin('stream', { - stream: stream - }); +export default stream => { + riot.mixin('stream', { stream }); }; -- cgit v1.2.3-freya