aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/core
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-02-18 14:24:30 +0100
committerChocobozzz <me@florianbigard.com>2021-02-18 14:24:30 +0100
commit288bcd7a6002ebefc280d889c550b038d9dad502 (patch)
treec76c8731db334d31bd87f775bb62aae695f86576 /client/src/app/core
parent53c06121a45a2ec943002833a0152bbfd4856ee4 (diff)
downloadPeerTube-288bcd7a6002ebefc280d889c550b038d9dad502.tar.gz
PeerTube-288bcd7a6002ebefc280d889c550b038d9dad502.tar.zst
PeerTube-288bcd7a6002ebefc280d889c550b038d9dad502.zip
Remember last log type
Diffstat (limited to 'client/src/app/core')
-rw-r--r--client/src/app/core/wrappers/storage.service.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/core/wrappers/storage.service.ts b/client/src/app/core/wrappers/storage.service.ts
index ad3aca6b8..e0563c611 100644
--- a/client/src/app/core/wrappers/storage.service.ts
+++ b/client/src/app/core/wrappers/storage.service.ts
@@ -11,8 +11,8 @@ abstract class StorageService {
11 return StorageService.storageSub.asObservable().pipe(filter(val => keys ? keys.includes(val) : true)) 11 return StorageService.storageSub.asObservable().pipe(filter(val => keys ? keys.includes(val) : true))
12 } 12 }
13 13
14 getItem (key: string) { 14 getItem <T extends string> (key: string) {
15 return this.instance.getItem(key) 15 return this.instance.getItem(key) as T
16 } 16 }
17 17
18 setItem (key: string, data: any, notifyOfUpdate = true) { 18 setItem (key: string, data: any, notifyOfUpdate = true) {