aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/inpage.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/inpage.js')
-rw-r--r--app/scripts/inpage.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/scripts/inpage.js b/app/scripts/inpage.js
index 25bfe1416..5b5c02c26 100644
--- a/app/scripts/inpage.js
+++ b/app/scripts/inpage.js
@@ -37,8 +37,12 @@ inpageProvider.enable = function () {
if (typeof detail.error !== 'undefined') {
reject(detail.error)
} else {
- inpageProvider.publicConfigStore.once('update', () => {
- resolve(inpageProvider.send({ method: 'eth_accounts' }).result)
+ inpageProvider.sendAsync({ method: 'eth_accounts', params: [] }, (error, response) => {
+ if (error) {
+ reject(error)
+ } else {
+ resolve(response.result)
+ }
})
}
})