mirror of
https://github.com/fluencelabs/js-peer-id
synced 2025-04-25 02:32:33 +00:00
removed node forge bundle comment
This commit is contained in:
parent
91bc56eb05
commit
effa21b892
@ -13,13 +13,6 @@ var isNode = !global.window
|
||||
// protobuf read from file
|
||||
var messages = isNode ? protobuf(fs.readFileSync(__dirname + '/../pb/crypto.proto')) : protobuf(require('buffer!./../pb/crypto.proto'))
|
||||
|
||||
// for some reason webpack can only find forge at forge.forge().someFunction()
|
||||
// browser should be able to just use forge.someFunction()
|
||||
// this is only happening when js-ipfs bundles peer-id module
|
||||
/* if(!isNode){
|
||||
forge = forge.forge()
|
||||
} */
|
||||
|
||||
exports = module.exports = Id
|
||||
|
||||
exports.Buffer = Buffer
|
||||
|
Loading…
x
Reference in New Issue
Block a user