From 0bbe8267b8a0de8b6d4bfe5c68a9e0fe7453267b Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 15 Apr 2018 17:39:12 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B9=E3=83=88=E3=83=AA=E3=83=BC=E3=83=A0?= =?UTF-8?q?=E3=82=92=E7=B5=8C=E7=94=B1=E3=81=97=E3=81=A6=E3=81=AE=E3=83=AA?= =?UTF-8?q?=E3=82=AF=E3=82=A8=E3=82=B9=E3=83=88=E3=81=A7=E3=81=AF=E3=83=88?= =?UTF-8?q?=E3=83=BC=E3=82=AF=E3=83=B3=E3=81=AE=E6=B7=BB=E4=BB=98=E3=81=AF?= =?UTF-8?q?=E7=84=A1=E9=A7=84=E3=81=A0=E3=81=A3=E3=81=9F?= 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(-) 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(),