Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chat.html is not working #82

Open
MohamedAlaa opened this issue Oct 10, 2017 · 1 comment
Open

chat.html is not working #82

MohamedAlaa opened this issue Oct 10, 2017 · 1 comment

Comments

@MohamedAlaa
Copy link

I've tried to play with chat/chat.html but it's missing something.

Uncaught ReferenceError: web3 is not defined at chat.html:120

do we need to link a specific javascript file?

Thanks,
Mohamed.

@sumitsg10
Copy link

$(window).load function() {
web3.eth.getAccounts(function(err,accs) {
if (err != null) {
alert("There was an error fetching your accounts.");
return;
}

if (accs.length == 0) {
  alert("Couldn't get any accounts! Make sure your Ethereum client is configured correctly.");
  return;
}

accounts = accs;
account = accounts[0];

refreshBalance();

});
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants