(...args)
| 8 | avatarService: service('avatar'), |
| 9 | |
| 10 | init(...args) { |
| 11 | this._super(args); |
| 12 | |
| 13 | const id = window.Sharedrop.userId; |
| 14 | const ip = window.Sharedrop.publicIp; |
| 15 | const avatar = this.avatarService.get(); |
| 16 | const you = User.create({ |
| 17 | uuid: id, |
| 18 | public_ip: ip, |
| 19 | avatarUrl: avatar.url, |
| 20 | label: avatar.label, |
| 21 | }); |
| 22 | |
| 23 | you.set('peer.id', id); |
| 24 | this.set('you', you); |
| 25 | }, |
| 26 | |
| 27 | actions: { |
| 28 | redirect() { |
nothing calls this directly
no outgoing calls
no test coverage detected