diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-08 04:44:59 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-08 04:44:59 +0900 |
| commit | 7f448221ceda4596c5ac0ba2f171f37649d9b156 (patch) | |
| tree | fb6aab5bf7a665fe61824d367b2fbce6c2a74b18 /src/client | |
| parent | Some bug fixes and clean ups (diff) | |
| download | misskey-7f448221ceda4596c5ac0ba2f171f37649d9b156.tar.gz misskey-7f448221ceda4596c5ac0ba2f171f37649d9b156.tar.bz2 misskey-7f448221ceda4596c5ac0ba2f171f37649d9b156.zip | |
Fix bugs
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/app/common/mios.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/app/common/mios.ts b/src/client/app/common/mios.ts index fd267bc3f8..7baf974adf 100644 --- a/src/client/app/common/mios.ts +++ b/src/client/app/common/mios.ts @@ -220,7 +220,7 @@ export default class MiOS extends EventEmitter { public signout() { localStorage.removeItem('me'); - document.cookie = `i=; domain=.${hostname}; expires=Thu, 01 Jan 1970 00:00:01 GMT;`; + document.cookie = `i=; domain=${hostname}; expires=Thu, 01 Jan 1970 00:00:01 GMT;`; location.href = '/'; } @@ -325,6 +325,11 @@ export default class MiOS extends EventEmitter { // キャッシュがあったとき if (cachedMe) { + if (cachedMe.token == null) { + this.signout(); + return; + } + // とりあえずキャッシュされたデータでお茶を濁して(?)おいて、 fetched(cachedMe); |