diff options
author | Chocobozzz <me@florianbigard.com> | 2018-07-31 19:47:14 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-07-31 19:47:14 +0200 |
commit | e80687c458065500e5f1d72fdedd2906c0d58b1a (patch) | |
tree | 50635d379a1707f0a748082cfdd4a86466a8c456 /client/src | |
parent | fb9e6cb075197d54f9a39dc4b0f9c45038e900d5 (diff) | |
download | PeerTube-e80687c458065500e5f1d72fdedd2906c0d58b1a.tar.gz PeerTube-e80687c458065500e5f1d72fdedd2906c0d58b1a.tar.zst PeerTube-e80687c458065500e5f1d72fdedd2906c0d58b1a.zip |
Upgrade client dependencies
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/shared/misc/peertube-local-storage.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/shared/misc/peertube-local-storage.ts b/client/src/app/shared/misc/peertube-local-storage.ts index ad761c82f..260f994b6 100644 --- a/client/src/app/shared/misc/peertube-local-storage.ts +++ b/client/src/app/shared/misc/peertube-local-storage.ts | |||
@@ -48,7 +48,7 @@ try { | |||
48 | const instance = new MemoryStorage() | 48 | const instance = new MemoryStorage() |
49 | 49 | ||
50 | peertubeLocalStorage = new Proxy(instance, { | 50 | peertubeLocalStorage = new Proxy(instance, { |
51 | set: function (obj, prop, value) { | 51 | set: function (obj, prop: string | number, value) { |
52 | if (MemoryStorage.prototype.hasOwnProperty(prop)) { | 52 | if (MemoryStorage.prototype.hasOwnProperty(prop)) { |
53 | instance[prop] = value | 53 | instance[prop] = value |
54 | } else { | 54 | } else { |
@@ -56,7 +56,7 @@ try { | |||
56 | } | 56 | } |
57 | return true | 57 | return true |
58 | }, | 58 | }, |
59 | get: function (target, name) { | 59 | get: function (target, name: string | number) { |
60 | if (MemoryStorage.prototype.hasOwnProperty(name)) { | 60 | if (MemoryStorage.prototype.hasOwnProperty(name)) { |
61 | return instance[name] | 61 | return instance[name] |
62 | } | 62 | } |