diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/app/desktop/tags/user-profile.tag | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/web/app/desktop/tags/user-profile.tag b/src/web/app/desktop/tags/user-profile.tag index 36c9f7f950..03697fd5f3 100644 --- a/src/web/app/desktop/tags/user-profile.tag +++ b/src/web/app/desktop/tags/user-profile.tag @@ -80,20 +80,22 @@ </style> <script> - this.age = require 's-age' + this.age = require('s-age'); this.mixin('i'); - this.user = this.opts.user + this.user = this.opts.user; - this.show-following = () => { - window = document.body.appendChild(document.createElement('mk-user-following-window')); - riot.mount window, do + this.showFollowing = () => { + riot.mount(document.body.appendChild(document.createElement('mk-user-following-window')), { user: this.user + }); + }; - this.show-followers = () => { - window = document.body.appendChild(document.createElement('mk-user-followers-window')); - riot.mount window, do + this.showFollowers = () => { + riot.mount(document.body.appendChild(document.createElement('mk-user-followers-window')), { user: this.user + }); + }; </script> </mk-user-profile> |