Fix bugs
This commit is contained in:
parent
76db93d690
commit
d939e552f3
8 changed files with 47 additions and 39 deletions
|
|
@ -1,11 +1,11 @@
|
|||
import Stream from './stream';
|
||||
import signout from '../signout';
|
||||
import MiOS from '../../mios';
|
||||
|
||||
/**
|
||||
* Home stream connection
|
||||
*/
|
||||
export default class Connection extends Stream {
|
||||
constructor(me) {
|
||||
constructor(os: MiOS, me) {
|
||||
super('', {
|
||||
i: me.token
|
||||
});
|
||||
|
|
@ -25,7 +25,7 @@ export default class Connection extends Stream {
|
|||
// このままではAPIが利用できないので強制的にサインアウトさせる
|
||||
this.on('my_token_regenerated', () => {
|
||||
alert('%i18n:common.my-token-regenerated%');
|
||||
signout();
|
||||
os.signout();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue