diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-15 17:39:12 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-15 17:39:12 +0900 |
| commit | 0bbe8267b8a0de8b6d4bfe5c68a9e0fe7453267b (patch) | |
| tree | f1c9bfb9567f64af6b8bcebd0e6e2a1d311fab8a /src | |
| parent | Merge branch 'master' of https://github.com/syuilo/misskey (diff) | |
| download | sharkey-0bbe8267b8a0de8b6d4bfe5c68a9e0fe7453267b.tar.gz sharkey-0bbe8267b8a0de8b6d4bfe5c68a9e0fe7453267b.tar.bz2 sharkey-0bbe8267b8a0de8b6d4bfe5c68a9e0fe7453267b.zip | |
ストリームを経由してのリクエストではトークンの添付は無駄だった
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/app/common/mios.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/app/common/mios.ts b/src/client/app/common/mios.ts index 41825c3b74..96a04bad3c 100644 --- a/src/client/app/common/mios.ts +++ b/src/client/app/common/mios.ts @@ -445,9 +445,6 @@ export default class MiOS extends EventEmitter { if (--pending === 0) spinner.parentNode.removeChild(spinner); }; - // Append a credential - if (this.isSignedIn) (data as any).i = this.i.token; - const promise = new Promise((resolve, reject) => { const viaStream = this.stream.hasConnection && (localStorage.getItem('apiViaStream') ? localStorage.getItem('apiViaStream') == 'true' : true); @@ -473,6 +470,9 @@ export default class MiOS extends EventEmitter { data }); } else { + // Append a credential + if (this.isSignedIn) (data as any).i = this.i.token; + const req = { id: uuid(), date: new Date(), |