quick fix

This commit is contained in:
Mark Nadal 2019-03-31 12:28:27 -07:00
parent 11c5087a83
commit 6b1af72038
4 changed files with 3 additions and 10 deletions

View File

@ -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
View File

@ -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);

View File

@ -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]) }

View File

@ -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",