File tree Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -383,9 +383,6 @@ EmbarkJS.Storage.IPFS.uploadFile = function(inputSelector) {
383383} ;
384384
385385EmbarkJS . Storage . IPFS . getUrl = function ( hash ) {
386- //var ipfsHash = web3.toAscii(hash);
387-
388- //return 'http://localhost:8080/ipfs/' + hash;
389386 return ( self . getUrl || "http://localhost:8080/ipfs/" ) + hash ;
390387} ;
391388
@@ -399,18 +396,16 @@ EmbarkJS.Messages.web3CompatibleWithV5 = function() {
399396 var _web3 = new Web3 ( ) ;
400397 if ( typeof ( _web3 . version ) === "string" ) {
401398 return true ;
402- } else {
403- return parseInt ( _web3 . version . api . split ( '.' ) [ 1 ] , 10 ) >= 20 ;
404399 }
400+ return parseInt ( _web3 . version . api . split ( '.' ) [ 1 ] , 10 ) >= 20 ;
405401} ;
406402
407403EmbarkJS . Messages . isNewWeb3 = function ( ) {
408404 var _web3 = new Web3 ( ) ;
409405 if ( typeof ( _web3 . version ) === "string" ) {
410406 return true ;
411- } else {
412- return parseInt ( _web3 . version . api . split ( '.' ) [ 0 ] , 10 ) >= 1 ;
413407 }
408+ return parseInt ( _web3 . version . api . split ( '.' ) [ 0 ] , 10 ) >= 1 ;
414409} ;
415410
416411EmbarkJS . Messages . getWhisperVersion = function ( cb ) {
Original file line number Diff line number Diff line change @@ -301,9 +301,6 @@ EmbarkJS.Storage.IPFS.uploadFile = function(inputSelector) {
301301} ;
302302
303303EmbarkJS . Storage . IPFS . getUrl = function ( hash ) {
304- //var ipfsHash = web3.toAscii(hash);
305-
306- //return 'http://localhost:8080/ipfs/' + hash;
307304 return ( self . getUrl || "http://localhost:8080/ipfs/" ) + hash ;
308305} ;
309306
@@ -317,18 +314,16 @@ EmbarkJS.Messages.web3CompatibleWithV5 = function() {
317314 var _web3 = new Web3 ( ) ;
318315 if ( typeof ( _web3 . version ) === "string" ) {
319316 return true ;
320- } else {
321- return parseInt ( _web3 . version . api . split ( '.' ) [ 1 ] , 10 ) >= 20 ;
322317 }
318+ return parseInt ( _web3 . version . api . split ( '.' ) [ 1 ] , 10 ) >= 20 ;
323319} ;
324320
325321EmbarkJS . Messages . isNewWeb3 = function ( ) {
326322 var _web3 = new Web3 ( ) ;
327323 if ( typeof ( _web3 . version ) === "string" ) {
328324 return true ;
329- } else {
330- return parseInt ( _web3 . version . api . split ( '.' ) [ 0 ] , 10 ) >= 1 ;
331325 }
326+ return parseInt ( _web3 . version . api . split ( '.' ) [ 0 ] , 10 ) >= 1 ;
332327} ;
333328
334329EmbarkJS . Messages . getWhisperVersion = function ( cb ) {
You can’t perform that action at this time.
0 commit comments