summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/app/common/mios.ts6
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(),