mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
commit
3e09e6a917
@ -33,7 +33,7 @@ function MetamaskInpageProvider (connectionStream) {
|
||||
})
|
||||
asyncProvider.on('error', console.error.bind(console))
|
||||
self.asyncProvider = asyncProvider
|
||||
|
||||
|
||||
self.idMap = {}
|
||||
// handle sendAsync requests via asyncProvider
|
||||
self.sendAsync = function(payload, cb){
|
||||
@ -61,7 +61,7 @@ function MetamaskInpageProvider (connectionStream) {
|
||||
|
||||
MetamaskInpageProvider.prototype.send = function (payload) {
|
||||
const self = this
|
||||
|
||||
|
||||
let selectedAddress
|
||||
let result = null
|
||||
switch (payload.method) {
|
||||
@ -80,8 +80,8 @@ MetamaskInpageProvider.prototype.send = function (payload) {
|
||||
|
||||
// throw not-supported Error
|
||||
default:
|
||||
var message = 'The MetaMask Web3 object does not support synchronous methods like ' + payload.method +
|
||||
'. See https://github.com/MetaMask/faq/blob/master/DEVELOPERS.md#all-async---think-of-metamask-as-a-light-client for details.'
|
||||
var link = 'https://github.com/MetaMask/faq/blob/master/DEVELOPERS.md#dizzy-all-async---think-of-metamask-as-a-light-client'
|
||||
var message = `The MetaMask Web3 object does not support synchronous methods like ${payload.method}. See ${link} for details.`
|
||||
throw new Error(message)
|
||||
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
8
docs/extension_description/en.txt
Normal file
8
docs/extension_description/en.txt
Normal file
@ -0,0 +1,8 @@
|
||||
MetaMask is an extension for accessing Ethereum enabled distributed applications, or "Dapps" in your normal browser!
|
||||
|
||||
The extension injects the Ethereum web3 API into every website's javascript context, so that dapps can read from the blockchain.
|
||||
|
||||
MetaMask also lets the user create and manage their own identities, so when a Dapp wants to perform a transaction and write to the blockchain, the user gets a secure interface to review the transaction, before approving or rejecting it.
|
||||
|
||||
Because it adds functionality to the normal browser context, MetaMask requires the permission to read and write to any webpage. You can always "view the source" of MetaMask the way you do any extension, or view the source code on Github:
|
||||
https://github.com/MetaMask/metamask-plugin
|
@ -82,7 +82,7 @@
|
||||
"through2": "^2.0.1",
|
||||
"vreme": "^3.0.2",
|
||||
"web3": "ethereum/web3.js#260ac6e78a8ce4b2e13f5bb0fdb65f4088585876",
|
||||
"web3-provider-engine": "^8.1.1",
|
||||
"web3-provider-engine": "^8.1.3",
|
||||
"web3-stream-provider": "^2.0.6",
|
||||
"xtend": "^4.0.1"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user