mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-01-10 12:24:20 +01:00
fix bug: old cache format was getting in the way
This commit is contained in:
parent
7c6360389b
commit
a955dba3c0
@ -68,7 +68,7 @@ function BoardsAPI(ipfs){
|
|||||||
var stored = localStorage.getItem('ipfs-boards-user-cache')
|
var stored = localStorage.getItem('ipfs-boards-user-cache')
|
||||||
try {
|
try {
|
||||||
this.users = JSON.parse(stored)
|
this.users = JSON.parse(stored)
|
||||||
if(this.users === null || this.users === undefined){
|
if(this.users === null || this.users === undefined || !this.users.indexOf || !this.users.push){
|
||||||
this.users = []
|
this.users = []
|
||||||
}
|
}
|
||||||
} catch(e){
|
} catch(e){
|
||||||
|
Loading…
Reference in New Issue
Block a user