"old" data to test against

This commit is contained in:
Mark Nadal
2021-08-21 01:57:14 -07:00
parent 7d34a29460
commit 2cb642bd7f
4 changed files with 7 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ $('html, #upload').upload(function resize(eve, up){
gun.get('test').get((eve.id+(new Date).getUTCSeconds()) % 60).put(b64); // limit uploads to 1 of 60 slots.
});
gun.get('test').map().on(function(data){
gun.get('test').map().once(function(data){
if("string" != typeof data){ return }
var type = data.split(';')[0], ui;
if(type.indexOf('image') + 1){ ui = $("img").get(0) }