From a955dba3c0f052f6ceca667c78e6094b107bcf57 Mon Sep 17 00:00:00 2001 From: Enrico Fasoli Date: Sat, 12 Dec 2015 12:13:46 +0100 Subject: [PATCH] fix bug: old cache format was getting in the way --- lib/boards-api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/boards-api.js b/lib/boards-api.js index c058aa8..9bf59e0 100644 --- a/lib/boards-api.js +++ b/lib/boards-api.js @@ -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){