Skip to content
Snippets Groups Projects
Commit 0bbe8267 authored by syuilo's avatar syuilo
Browse files

ストリームを経由してのリクエストではトークンの添付は無駄だった

parent 2325c147
No related branches found
No related tags found
No related merge requests found
......@@ -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(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment