From 0bbe8267b8a0de8b6d4bfe5c68a9e0fe7453267b Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 15 Apr 2018 17:39:12 +0900 Subject: ストリームを経由してのリクエストではトークンの添付は無駄だった MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/app/common/mios.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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(), -- cgit v1.2.3-freya