This commit is contained in:
Peter Maquiran
2023-01-05 12:11:50 +01:00
parent 0d485672d8
commit 572ab6db7b
12 changed files with 165 additions and 88 deletions
+5
View File
@@ -19,6 +19,11 @@ export class LocalstoreService {
getKey(keyName:string) {
return this.prefix + keyName
}
keyExist(keyName) {
keyName = this.getKey(keyName)
return !localStorage.getItem(keyName) === null
}
get( keyName:string, safe) {