This commit is contained in:
こぴなたみぽ
2018-02-26 18:31:55 +09:00
parent 1c1976f575
commit 37e5a9d06a
5 changed files with 9 additions and 5 deletions

View File

@ -13,6 +13,7 @@ export default class Connection extends Stream {
// 最終利用日時を更新するため定期的にaliveメッセージを送信
setInterval(() => {
this.send({ type: 'alive' });
me.last_used_at = new Date();
}, 1000 * 60);
// 自分の情報が更新されたとき

View File

@ -23,12 +23,14 @@ export default Vue.extend({
docsUrl
};
},
watch: {
'os.i'() {
mounted() {
this.$watch('os.i', () => {
if ((this as any).os.i.twitter) {
if (this.form) this.form.close();
}
}
}, {
deep: true
});
},
methods: {
connect() {