diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-10-13 19:16:47 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-10-13 19:16:47 +0900 |
| commit | 3aef5e6748777b821e8bcb3ad58410ac52b848e2 (patch) | |
| tree | d0e1c57ecd8de78a774b1b51a5e5732b23f0fb8a /src/client/app/mios.ts | |
| parent | connectedイベントはpongパラメータがtrueの時だけ発行するよ... (diff) | |
| download | misskey-3aef5e6748777b821e8bcb3ad58410ac52b848e2.tar.gz misskey-3aef5e6748777b821e8bcb3ad58410ac52b848e2.tar.bz2 misskey-3aef5e6748777b821e8bcb3ad58410ac52b848e2.zip | |
Better id
Diffstat (limited to 'src/client/app/mios.ts')
| -rw-r--r-- | src/client/app/mios.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/app/mios.ts b/src/client/app/mios.ts index 558c53dcf1..abbd23e3d4 100644 --- a/src/client/app/mios.ts +++ b/src/client/app/mios.ts @@ -446,7 +446,7 @@ export default class MiOS extends EventEmitter { const viaStream = this.stream && this.store.state.device.apiViaStream && !forceFetch; if (viaStream) { - const id = Math.random().toString(); + const id = Math.random().toString().substr(2, 8); this.stream.once(`api:${id}`, res => { if (res == null || Object.keys(res).length == 0) { |