Improve local storage

This commit is contained in:
Peter Maquiran
2021-07-18 21:05:46 +01:00
parent f28e4a1d04
commit d79d5fe858
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -6,10 +6,11 @@ import { AES, enc, SHA1 } from 'crypto-js'
})
export class LocalstoreService {
private prefix = 'v2-'
private prefix = 'v0-'
constructor() {
const key = SHA1('version').toString()
const version = this.prefix.charAt(1)
if(this.get(key, false)) {
// alert('new Update')