diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-05-27 17:25:52 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-05-27 17:25:52 +0200 |
commit | ccf6ed16f1eeb05b77103bd44bc06ccbbbba9bdd (patch) | |
tree | 1765f48824be934e0be07e8a987a9513c58ba3da /client/app/users/shared/user.model.ts | |
parent | 41a2aee38cf812510010da09de9bae53590ec119 (diff) | |
download | PeerTube-ccf6ed16f1eeb05b77103bd44bc06ccbbbba9bdd.tar.gz PeerTube-ccf6ed16f1eeb05b77103bd44bc06ccbbbba9bdd.tar.zst PeerTube-ccf6ed16f1eeb05b77103bd44bc06ccbbbba9bdd.zip |
Do not prefix private attributes
Diffstat (limited to 'client/app/users/shared/user.model.ts')
-rw-r--r-- | client/app/users/shared/user.model.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/app/users/shared/user.model.ts b/client/app/users/shared/user.model.ts index 73fd4ddc0..ca0a5f26c 100644 --- a/client/app/users/shared/user.model.ts +++ b/client/app/users/shared/user.model.ts | |||
@@ -4,16 +4,16 @@ export class User { | |||
4 | username: string; | 4 | username: string; |
5 | token: Token; | 5 | token: Token; |
6 | 6 | ||
7 | static load(): User { | 7 | static load() { |
8 | return new User(localStorage.getItem('username'), Token.load()); | 8 | return new User(localStorage.getItem('username'), Token.load()); |
9 | } | 9 | } |
10 | 10 | ||
11 | constructor (username: string, hash_token: any) { | 11 | constructor(username: string, hash_token: any) { |
12 | this.username = username; | 12 | this.username = username; |
13 | this.token = new Token(hash_token); | 13 | this.token = new Token(hash_token); |
14 | } | 14 | } |
15 | 15 | ||
16 | save(): void { | 16 | save() { |
17 | localStorage.setItem('username', this.username); | 17 | localStorage.setItem('username', this.username); |
18 | this.token.save(); | 18 | this.token.save(); |
19 | } | 19 | } |