MCPcopy Create free account
hub / github.com/ShareDropio/sharedrop / init

Function init

app/controllers/application.js:10–25  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected