Skip to content
🌐 🔌 The MetaMask browser extension enables browsing Ethereum blockchain enabled websites.
JavaScript CSS Other
Branch: develop
Clone or download
rickycodes Add onbeforeunload and have it call onCancel (#7335)
* Add onbeforeunload and have it call onCancel

* Address PR feedback

* Get integration tests passing again

* Add underscores

* Add ENVIRONMENT_TYPE_NOTIFICATION check

* Add _beforeUnload + metricsEvent
Latest commit 02aebc2 Nov 6, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Cleanup beforeunload handler after transaction is resolved (#7333) Oct 31, 2019
.github ci - install deps - limit install scripts to whitelist (#7208) Sep 25, 2019
.storybook Switch from `npm` to `yarn` (#6843) Jul 30, 2019
app Merge pull request #7353 from MetaMask/master-parity Nov 5, 2019
development Add migration on 3box imports and remove feature flag (#7209) Sep 26, 2019
docs dev - move gource instructions from docs to development script Sep 10, 2019
test Redesign approve screen (#7271) Nov 5, 2019
ui Add onbeforeunload and have it call onCancel (#7335) Nov 6, 2019
.dockerignore mascara - ready to deploy via docker Apr 6, 2017
.editorconfig Clean EditorConfig file May 23, 2019
.eslintignore Lint `.json` files (#6852) Jul 15, 2019
.eslintrc Remove trailing commas from JSON files (#7284) Oct 17, 2019
.gitattributes I5849 incremental account security (#6874) Aug 2, 2019
.gitignore Switch from `npm` to `yarn` (#6843) Jul 30, 2019
.nvmrc nvm: Update to v10.16.3 (#7127) Sep 9, 2019
.stylelintignore mascara - remove from project (#6283) Mar 12, 2019
.stylelintrc Remove trailing commas from JSON files (#7284) Oct 17, 2019
CHANGELOG.md Update Changelog for v7.4.0 Nov 1, 2019
CONTRIBUTING.md Switch from `npm` to `yarn` (#6843) Jul 30, 2019
ISSUE_TEMPLATE Merge branch 'master' into NewUI-flat-merge-with-master Dec 7, 2017
LICENSE License Jun 22, 2018
MISSION.md Mission v2 May 29, 2018
README.md Add browser recommendation to README (#6941) Aug 2, 2019
USER_AGREEMENT.md fix tos link; Jul 12, 2018
babel.config.js Set minimum Firefox version to v56.2 to support Waterfox (#7156) Sep 13, 2019
fonts Improved Ui Dev Mode Jul 1, 2016
gulpfile.js Optimize images only during production build (#7194) Sep 21, 2019
images Improved Ui Dev Mode Jul 1, 2016
package.json Update to gaba@1.8.0 (#7357) Nov 6, 2019
yarn.lock Update to gaba@1.8.0 (#7357) Nov 6, 2019

README.md

MetaMask Browser Extension

Build Status Coverage Status

You can find the latest version of MetaMask on our official website. For help using MetaMask, visit our User Support Site.

MetaMask supports Firefox, Google Chrome, and Chromium-based browsers. We recommend using the latest available browser version.

For up to the minute news, follow our Twitter or Medium pages.

To learn how to develop MetaMask-compatible applications, visit our Developer Docs.

To learn how to contribute to the MetaMask project itself, visit our Internal Docs.

Building locally

  • Install Node.js version 10
    • If you are using nvm (recommended) running nvm use will automatically choose the right node version for you.
  • Install Yarn
  • Install dependencies: yarn
  • Build the project to the ./dist/ folder with yarn dist.
  • Optionally, to start a development build (e.g. with logging and file watching) run yarn start instead.
    • To start the React DevTools and Redux DevTools Extension alongside the app, use yarn start:dev.
      • React DevTools will open in a separate window; no browser extension is required
      • Redux DevTools will need to be installed as a browser extension. Open the Redux Remote Devtools to access Redux state logs. This can be done by either right clicking within the web browser to bring up the context menu, expanding the Redux DevTools panel and clicking Open Remote DevTools OR clicking the Redux DevTools extension icon and clicking Open Remote DevTools.
        • You will also need to check the "Use custom (local) server" checkbox in the Remote DevTools Settings, using the default server configuration (host localhost, port 8000, secure connection checkbox unchecked)

Uncompressed builds can be found in /dist, compressed builds can be found in /builds once they're built.

Contributing

You can read our internal docs here.

You can re-generate the docs locally by running yarn doc, and contributors can update the hosted docs by running yarn publish-docs.

Running Tests

Run tests with yarn test.

You can also test with a continuously watching process, via yarn watch.

You can run the linter by itself with yarn lint.

Architecture

Architecture Diagram

Development

yarn
yarn start

Build for Publishing

yarn dist

Writing Browser Tests

To write tests that will be run in the browser using QUnit, add your test files to test/integration/lib.

Other Docs

You can’t perform that action at this time.