mirror of
https://github.com/amark/gun.git
synced 2025-10-14 00:59:35 +00:00
nomem for Meething!
This commit is contained in:
parent
c93305ae11
commit
51be588a74
11
lib/nomem.js
Normal file
11
lib/nomem.js
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
function Nomem(){
|
||||||
|
var opt = {}, u;
|
||||||
|
opt.put = function(file, data, cb){ cb(null, -9) }; // dev/null!
|
||||||
|
opt.get = function(file, cb){ cb(null) };
|
||||||
|
return opt;
|
||||||
|
}
|
||||||
|
if(typeof window !== "undefined"){
|
||||||
|
window.Nomem = Nomem;
|
||||||
|
} else {
|
||||||
|
try{ module.exports = Nomem }catch(e){}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user