Comments (3)
At line 103 of file app/app.js, there is a statement window.web3 = web3;
with condition if (window.web3)
, comment out the condition line, then there would be always a defined web3.
I'm not sure whether this is the correct solution, it just works for me.
from explorer.
in app/app.js
you add
if (typeof web3 !== 'undefined') {
web3 = new Web3(web3.currentProvider);
} else {
// set the provider you want from Web3.providers
web3 = new Web3(new Web3.providers.HttpProvider("http://"+GETH_HOSTNAME+":"+GETH_RPCPORT);
}
and delete var Web3 = require('web3');
from explorer.
Use this
https://github.com/sthnaqvi/explorer
from explorer.
Related Issues (20)
- How can i make this project to a web project
- TypeError: The header content contains invalid characters HOT 2
- Try to connect to geth 1.7.2
- Explorer + Nginx Proxy + Geth Connecting issues. HOT 2
- Unable to connect to geth RPC using LXC HOT 3
- App makes 100+ requests on page load
- Black Dashboard on public IP HOT 1
- Running Public Site Without Exposing RPC HOT 3
- Angular sanitize error HOT 7
- not able to use web3.admin.peers
- https://cdn.fontawesome.com/js/stats.js 404
- home page console erro , can't get chaininfo
- Without MetaMask chrome plugin report "web3 is not defined" HOT 2
- xx
- geth is not running at public address
- Problem at running explorer webapp HOT 1
- Install issue HOT 5
- npm install got so many errors ! HOT 2
- Nothing is displayed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from explorer.