Better id
This commit is contained in:
parent
2b536a7443
commit
3aef5e6748
5 changed files with 7 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue