summaryrefslogtreecommitdiff
path: root/src/web/app/common/scripts/streaming
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-02-21 15:30:03 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-02-21 15:30:03 +0900
commitde6d77d0cbd2905e021a075b667b6688cd5e06f6 (patch)
tree4f960a3943926295ca1017bdd1cd35bc33dfe223 /src/web/app/common/scripts/streaming
parentwip (diff)
downloadsharkey-de6d77d0cbd2905e021a075b667b6688cd5e06f6.tar.gz
sharkey-de6d77d0cbd2905e021a075b667b6688cd5e06f6.tar.bz2
sharkey-de6d77d0cbd2905e021a075b667b6688cd5e06f6.zip
wip
Diffstat (limited to 'src/web/app/common/scripts/streaming')
-rw-r--r--src/web/app/common/scripts/streaming/home-stream.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/web/app/common/scripts/streaming/home-stream.ts b/src/web/app/common/scripts/streaming/home-stream.ts
index 11ad754ef0..a92b61caed 100644
--- a/src/web/app/common/scripts/streaming/home-stream.ts
+++ b/src/web/app/common/scripts/streaming/home-stream.ts
@@ -16,7 +16,9 @@ export default class Connection extends Stream {
}, 1000 * 60);
// 自分の情報が更新されたとき
- this.on('i_updated', me.update);
+ this.on('i_updated', i => {
+ Object.assign(me, i);
+ });
// トークンが再生成されたとき
// このままではAPIが利用できないので強制的にサインアウトさせる