Improve account connect/loading, check network #154

Merged
raucao merged 4 commits from feature/sign_in into master 2019-09-10 14:48:56 +00:00
Showing only changes of commit 304c0ac8d0 - Show all commits
+2 -5
View File
@@ -114,12 +114,9 @@ export default Service.extend({
}
if (window.ethereum) {
try {
// Request account access if needed
await window.ethereum.enable();
// Accounts now exposed
if (window.ethereum.isConnected()) {
instantiateWithAccount(window.ethereum, this);
} catch (error) {
} else {
instantiateWithoutAccount();
}
}
2