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