mirror of
https://github.com/amark/gun.git
synced 2025-06-24 23:12:32 +00:00
21 lines
515 B
JavaScript
21 lines
515 B
JavaScript
;(function(){
|
|
var Gun = (typeof window !== "undefined")? window.Gun : require('../gun');
|
|
var Rad = (Gun.window||{}).Radix || require('./radix');
|
|
function input(msg){
|
|
var at = this.as, to = this.to, peer = (msg.mesh||empty).via;
|
|
var get = msg.get, soul, key;
|
|
if(!peer || !get){ return to.next(msg) }
|
|
console.log("super", msg);
|
|
if(soul = get['#']){
|
|
if(key = get['.']){
|
|
|
|
} else {
|
|
|
|
}
|
|
}
|
|
to.next(msg);
|
|
}
|
|
var empty = {}, u;
|
|
if(Gun.window){ return }
|
|
try{module.exports = input}catch(e){}
|
|
}()); |