Fixing non-existent err variable in localStorage (#1044)

* Fixing non-existant err variable in localStorage

* Update localStorage.js
This commit is contained in:
RICHΛRD ΛNΛYΛ 2021-04-11 22:55:44 -07:00 committed by GitHub
parent e9ed2e5a02
commit 429b011955
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@ Gun.on('create', function(root){
clearTimeout(to);
to = false;
try{store.setItem('gap/'+opt.prefix, JSON.stringify(gap));
}catch(e){ Gun.log(err = e || "localStorage failure") }
}catch(e){ Gun.log("localStorage failure: "+e.message) }
}
});
@ -147,4 +147,4 @@ Gun.on('create', function(root){
});
}
});