1
0
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:
Enrico Fasoli 2015-12-12 12:13:46 +01:00
parent 7c6360389b
commit a955dba3c0

View File

@ -68,7 +68,7 @@ function BoardsAPI(ipfs){
var stored = localStorage.getItem('ipfs-boards-user-cache')
try {
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 = []
}
} catch(e){