1
0
mirror of https://github.com/fazo96/ipfs-boards synced 2025-01-10 12:24:20 +01:00

added missing event

This commit is contained in:
Enrico Fasoli 2015-11-18 17:19:33 +01:00
parent 657a18513d
commit 32415f21ae

View File

@ -81,7 +81,7 @@ BoardsAPI.prototype.resolveIPNS = function(n,handler){
var cached = this.users[n]
if(cached){
this.ee.emit(n,cached)
console.log(n,'was cached')
console.log(n,'was cached',cached)
} else {
console.log(n,'not cached')
}
@ -99,6 +99,7 @@ BoardsAPI.prototype.resolveIPNS = function(n,handler){
if(this.users[n] != url) this.isUserProfile(url,(isit,err) => {
if(isit){
console.log(n,'is a user')
if(this.users[n] === undefined) this.ee.emit('user',n,url)
this.users[n] = url
this.ee.emit(n,url)
this.backupCache()