ストリームを経由してのリクエストではトークンの添付は無駄だった
This commit is contained in:
parent
2325c147f8
commit
0bbe8267b8
1 changed files with 3 additions and 3 deletions
|
@ -445,9 +445,6 @@ export default class MiOS extends EventEmitter {
|
||||||
if (--pending === 0) spinner.parentNode.removeChild(spinner);
|
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 promise = new Promise((resolve, reject) => {
|
||||||
const viaStream = this.stream.hasConnection &&
|
const viaStream = this.stream.hasConnection &&
|
||||||
(localStorage.getItem('apiViaStream') ? localStorage.getItem('apiViaStream') == 'true' : true);
|
(localStorage.getItem('apiViaStream') ? localStorage.getItem('apiViaStream') == 'true' : true);
|
||||||
|
@ -473,6 +470,9 @@ export default class MiOS extends EventEmitter {
|
||||||
data
|
data
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
// Append a credential
|
||||||
|
if (this.isSignedIn) (data as any).i = this.i.token;
|
||||||
|
|
||||||
const req = {
|
const req = {
|
||||||
id: uuid(),
|
id: uuid(),
|
||||||
date: new Date(),
|
date: new Date(),
|
||||||
|
|
Loading…
Reference in a new issue