1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Correct async link

This commit is contained in:
Dan Finlay 2016-10-05 11:10:39 -07:00
parent 5d63ab22f4
commit d02b2c4b4a

View File

@ -33,7 +33,7 @@ function MetamaskInpageProvider (connectionStream) {
}) })
asyncProvider.on('error', console.error.bind(console)) asyncProvider.on('error', console.error.bind(console))
self.asyncProvider = asyncProvider self.asyncProvider = asyncProvider
self.idMap = {} self.idMap = {}
// handle sendAsync requests via asyncProvider // handle sendAsync requests via asyncProvider
self.sendAsync = function(payload, cb){ self.sendAsync = function(payload, cb){
@ -61,7 +61,7 @@ function MetamaskInpageProvider (connectionStream) {
MetamaskInpageProvider.prototype.send = function (payload) { MetamaskInpageProvider.prototype.send = function (payload) {
const self = this const self = this
let selectedAddress let selectedAddress
let result = null let result = null
switch (payload.method) { switch (payload.method) {
@ -80,8 +80,8 @@ MetamaskInpageProvider.prototype.send = function (payload) {
// throw not-supported Error // throw not-supported Error
default: default:
var message = 'The MetaMask Web3 object does not support synchronous methods like ' + payload.method + var link = 'https://github.com/MetaMask/faq/blob/master/DEVELOPERS.md#dizzy-all-async---think-of-metamask-as-a-light-client'
'. See https://github.com/MetaMask/faq/blob/master/DEVELOPERS.md#all-async---think-of-metamask-as-a-light-client for details.' var message = `The MetaMask Web3 object does not support synchronous methods like ${payload.method}. See ${link} for details.`
throw new Error(message) throw new Error(message)
} }