1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/app/pages
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
..
add-token Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
confirm-add-suggested-token Purge xtend from the UI (#7795) 2020-01-13 12:59:21 -03:30
confirm-add-token Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
confirm-approve Add react/no-unused-prop-types ESLint rule (#7655) 2019-12-07 23:10:47 -04:00
confirm-deploy-contract Disable unnecessary curly braces in JSX (#7454) 2019-11-18 11:38:47 -03:30
confirm-send-ether Disable unnecessary curly braces in JSX (#7454) 2019-11-18 11:38:47 -03:30
confirm-send-token Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
confirm-token-transaction-base Fix confirm token transaction amount display (#7081) 2019-08-31 13:26:49 -03:00
confirm-transaction Convert ConfirmTxScreen to an ES6 class (#7790) 2020-01-13 13:32:54 -03:30
confirm-transaction-base Remove unnecessary get environment type parameter (#7891) 2020-01-24 15:12:58 -04:00
confirm-transaction-switch Fix batch transaction UX (#7473) 2020-01-10 06:34:02 -08:00
connected-sites Connect distinct accounts per site (#7004) 2019-12-03 09:35:56 -08:00
create-account Remove unused current view related things (#7843) 2020-01-16 13:02:44 -04:00
first-time-flow Add mechanism to randomize seed phrase filename (#7863) 2020-01-21 21:22:55 -04:00
home Remove unnecessary get environment type parameter (#7891) 2020-01-24 15:12:58 -04:00
keychains Add mechanism to randomize seed phrase filename (#7863) 2020-01-21 21:22:55 -04:00
lock Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
mobile-sync Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
permissions-connect Remove unnecessary get environment type parameter (#7891) 2020-01-24 15:12:58 -04:00
routes Change "Log In/Out" terminology to "Unlock/Lock" (#7853) 2020-01-21 14:09:53 -08:00
send Add withFixtures helper and simple-send test (#7862) 2020-01-20 14:50:25 -04:00
settings Remove unnecessary get environment type parameter (#7891) 2020-01-24 15:12:58 -04:00
unlock-page Remove unnecessary get environment type parameter (#7891) 2020-01-24 15:12:58 -04:00
index.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
index.scss Connect distinct accounts per site (#7004) 2019-12-03 09:35:56 -08:00