Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
feat: fix the extension id via manifest key 🎺
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosantangelo committed Jun 13, 2018
1 parent 98002af commit 81980d3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*DS_Store
node_modules
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ main()

- `metamaskPath`: Path to the MetaMask extension (by default it uses the one bundled)

- `extensionUrl`: URL of the MetaMask extension, by default it is `chrome-extension://lplkikplmecagihcgjcjpnmndcjgkihb/popup.html` but if you use a different version you might need to change it use the right extension id.
- `extensionUrl`: URL of the MetaMask extension, by default it is `chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/popup.html` but if you use a different version you might need to change it use the right extension id.

- `dappeteer.getMetaMask(browser)`: returns a promise that resolves to an object that allows you to interact with MetaMask by using the following methods:

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = {
})

const EXTENSION_ID =
options.extensionId || 'lplkikplmecagihcgjcjpnmndcjgkihb'
options.extensionId || 'nkbihfbeogaeaoehlefnkodbefgpgknn'
const EXTENSION_URL =
options.extensionUrl || `chrome-extension://${EXTENSION_ID}/popup.html`

Expand Down
1 change: 1 addition & 0 deletions metamask/4.7.4/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"manifest_version": 2,
"author": "https://metamask.io",
"description": "__MSG_appDescription__",
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlcgI4VVL4JUvo6hlSgeCZp9mGltZrzFvc2Asqzb1dDGO9baoYOe+QRoh27/YyVXugxni480Q/R147INhBOyQZVMhZOD5pFMVutia9MHMaZhgRXzrK3BHtNSkKLL1c5mhutQNwiLqLtFkMSGvka91LoMEC8WTI0wi4tACnJ5FyFZQYzvtqy5sXo3VS3gzfOBluLKi7BxYcaUJjNrhOIxl1xL2qgK5lDrDOLKcbaurDiwqofVtAFOL5sM3uJ6D8nOO9tG+T7hoobRFN+nxk43PHgCv4poicOv+NMZQEk3da1m/xfuzXV88NcE/YRbRLwAS82m3gsJZKc6mLqm4wZHzBwIDAQAB",
"commands": {
"_execute_browser_action": {
"suggested_key": {
Expand Down

0 comments on commit 81980d3

Please sign in to comment.