From 65edc4718797dee098745825afbe4111a8e4eae4 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Mon, 30 Jul 2018 12:52:48 +0100 Subject: [PATCH] Adding default callback --- lib/modules/ipfs/embarkjs/name.js | 2 +- templates/demo/app/dapp.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modules/ipfs/embarkjs/name.js b/lib/modules/ipfs/embarkjs/name.js index f38ebc318..73c64485d 100644 --- a/lib/modules/ipfs/embarkjs/name.js +++ b/lib/modules/ipfs/embarkjs/name.js @@ -1,6 +1,5 @@ /*global __embarkIPFS*/ - const NoConnectionError = 'No IPFS connection. Please ensure to call Embark.Names.setProvider()'; const NotAvailableError = 'Not available with ipns'; @@ -21,6 +20,7 @@ __embarkIPFS.resolve = function (name, callback) { }; __embarkIPFS.register = function(addr, callback) { + callback = callback || function () {}; if (!this._ipfsConnection) { return new Error(NoConnectionError); } diff --git a/templates/demo/app/dapp.js b/templates/demo/app/dapp.js index cad741cc8..bd68ba8bc 100644 --- a/templates/demo/app/dapp.js +++ b/templates/demo/app/dapp.js @@ -21,7 +21,7 @@ class App extends React.Component { activeKey: 1, whisperEnabled: false, storageEnabled: false, - ensEnabled: false, + ensEnabled: false }; }