aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/shared/misc/peertube-local-storage.ts4
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 }