diff --git a/lib/store.js b/lib/store.js index 18ef10ce..a5d4294c 100644 --- a/lib/store.js +++ b/lib/store.js @@ -6,7 +6,7 @@ Gun.on('create', function(root){ if(typeof window !== "undefined"){ opt.window = window; } - if(true !== opt.radisk && (!opt.window && !process.env.RAD_ENV && !process.env.AWS_S3_BUCKET)){ return } + if(true !== opt.radisk && (!opt.window && !process.env.RAD_ENV && !process.env.AWS_S3_BUCKET) && false !== opt.localStorage){ return } //if(true !== opt.radisk){ return } //if(false === opt.radisk){ return } var Radisk = (opt.window && opt.window.Radisk) || require('./radisk'); diff --git a/test/panic/radisk.js b/test/panic/radisk.js index 8825798e..f825fb4b 100644 --- a/test/panic/radisk.js +++ b/test/panic/radisk.js @@ -64,7 +64,7 @@ describe("Make sure the Radix Storage Engine (RAD) works.", function(){ }); var Gun = require('gun'); //require('gun/lib/store'); - var gun = Gun({web: server, localStorage: env.config.notrad, chunk: env.config.chunk, file: 'radata'}); + var gun = Gun({web: server, localStorage: env.config.notrad, chunk: env.config.chunk, file: 'radata', radisk: true}); server.listen(port, function(){ test.done(); }); @@ -157,7 +157,7 @@ describe("Make sure the Radix Storage Engine (RAD) works.", function(){ }); var Gun = require('gun'); //require('gun/lib/store'); - var gun = Gun({web: server, localStorage: env.config.notrad, chunk: env.config.notrad, file: 'radata', lack: 1000 * 60 * 60}); + var gun = Gun({web: server, localStorage: env.config.notrad, chunk: env.config.notrad, file: 'radata', lack: 1000 * 60 * 60, radisk: true}); server.listen(port, function(){ test.done(); });