1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app/scripts
Mark Stacey 86c6280bc3
Remove unnecessary get environment type parameter (#7891)
* Remove unnecessary `getEnvironmentType` parameter

The default value of the first parameter is `window.location.href`, so
there is no need to pass it in explicitly.

* Remove junk parameter from `getEnvironmentType` invocation

`getEnvironmentType` doesn't need to be passed any parameter, as the
default value is `window.location.href` which is generally what is
wanted. In this case, the variable `location.href` was always
`undefined` anyway. This particular `location` variable is from React
Router, and does not have an `href` property.

* Fix comment for `getEnvironmentType`

One of the possible return values was referred to by the wrong name.
2020-01-24 15:12:58 -04:00
..
account-import-strategies Clean up "JSON File" import strategy test output (#7855) 2020-01-17 19:59:47 -03:30
controllers Change "Log In/Out" terminology to "Unlock/Lock" (#7853) 2020-01-21 14:09:53 -08:00
lib Remove unnecessary get environment type parameter (#7891) 2020-01-24 15:12:58 -04:00
migrations Change "Log In/Out" terminology to "Unlock/Lock" (#7853) 2020-01-21 14:09:53 -08:00
platforms Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
background.js Allow exporting state during e2e tests (#7860) 2020-01-17 18:59:25 -04:00
chromereload.js
contentscript.js Consistent jsdoc syntax (#7755) 2020-01-13 14:36:36 -04:00
first-time-state.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
inpage.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
metamask-controller.js Consistent jsdoc syntax (#7755) 2020-01-13 14:36:36 -04:00
phishing-detect.js Remove unnecessary get environment type parameter (#7891) 2020-01-24 15:12:58 -04:00
README.md add READMEs to folders, re #3427 2018-03-14 15:33:22 +02:00
ui.js Remove unnecessary get environment type parameter (#7891) 2020-01-24 15:12:58 -04:00

Main MetaMask Code

This folder contains the core-code.

Currently, it is organized mostly based on file category, like:

controllers, migrations, lib

Ongoing Task

Refactor code-structure, thus the subsystems are reflected on the filesystem.

Examples