Skip to content

Commit

Permalink
Merge pull request #15 from Firescar96/master
Browse files Browse the repository at this point in the history
Fix bad merge (#14), remove process.env call
  • Loading branch information
whitj00 authored Aug 2, 2016
2 parents 0bc1cd9 + 57f0bda commit d3e780d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
6 changes: 3 additions & 3 deletions app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ angular.module('ethExplorer', ['ngRoute','ui.bootstrap'])
controller: 'transactionInfosCtrl'
}).
when('/address/:addressId', {
templateUrl: 'views/addressInfos.html',
controller: 'addressInfosCtrl'
templateUrl: 'views/addressInfo.html',
controller: 'addressInfoCtrl'
}).
otherwise({
redirectTo: '/'
});
}])
.run(function($rootScope) {
var web3 = require('web3');
var eth_node_url = process.env["ETHEREUM_URL"] || "http://localhost:8545";
var eth_node_url = 'http://localhost:8545';
web3.setProvider(new web3.providers.HttpProvider(eth_node_url));
$rootScope.web3=web3;
function sleepFor( sleepDuration ){
Expand Down
2 changes: 1 addition & 1 deletion app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

<!--Controllers-->
<script src="scripts/controllers/mainController.js"></script>
<script src="scripts/controllers/addressInfosController.js"></script>
<script src="scripts/controllers/addressInfoController.js"></script>
<script src="scripts/controllers/blockInfosController.js"></script>
<script src="scripts/controllers/transactionInfosController.js"></script>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
angular.module('ethExplorer')
.controller('addressInfosCtrl', function ($rootScope, $scope, $location, $routeParams, $q) {
.controller('addressInfoCtrl', function ($rootScope, $scope, $location, $routeParams, $q) {

$scope.init=function(){

Expand Down Expand Up @@ -34,4 +34,4 @@ angular.module('ethExplorer')

$scope.init();

});
});
3 changes: 0 additions & 3 deletions app/views/addressInfos.html

This file was deleted.

0 comments on commit d3e780d

Please sign in to comment.