mirror of
https://github.com/amark/gun.git
synced 2025-06-04 13:16:44 +00:00
quick fix
This commit is contained in:
parent
11c5087a83
commit
6b1af72038
@ -1,13 +1,7 @@
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: 'Oxygen', 'Trebuchet MS', arial;
|
||||
position: relative;
|
||||
b-ackground: black;
|
||||
c-olor: white;
|
||||
}
|
||||
|
||||
body {
|
||||
font-size: 18pt;
|
||||
}
|
||||
|
||||
|
2
gun.js
2
gun.js
@ -1404,7 +1404,7 @@
|
||||
}
|
||||
if(Gun.is(data)){
|
||||
data.get(function(soul, o, msg){
|
||||
if(!soul && Gun.val.is(msg.put)){
|
||||
if(!soul){
|
||||
return Gun.log("The reference you are saving is a", typeof msg.put, '"'+ msg.put +'", not a node (object)!');
|
||||
}
|
||||
gun.put(Gun.val.link.ify(soul), cb, as);
|
||||
|
@ -10,10 +10,9 @@
|
||||
opt = opt || {};
|
||||
opt.file = String(opt.file || 'radata');
|
||||
if(Gun.TESTING){ opt.file = 'radatatest' }
|
||||
var ls = localStorage;
|
||||
|
||||
var store = function Store(){};
|
||||
|
||||
var ls = localStorage;
|
||||
store.put = function(key, data, cb){ ls[''+key] = data; cb(null, 1) }
|
||||
store.get = function(key, cb){ cb(null, ls[''+key]) }
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "gun",
|
||||
"version": "0.2019.323",
|
||||
"version": "0.2019.331",
|
||||
"description": "A realtime, decentralized, offline-first, graph data synchronization engine.",
|
||||
"main": "index.js",
|
||||
"browser": "gun.js",
|
||||
|
Loading…
x
Reference in New Issue
Block a user