1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-30 16:18:07 +01:00
metamask-extension/ui/lib
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-link.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
etherscan-prefix-for-network.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
icon-factory.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
is-mobile-view.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
local-storage-helpers.js Connect gas price chart to gas station api. 2018-12-04 00:06:22 -03:30
shallow-with-context.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
test-timeout.js Check for unused function arguments (#6583) 2019-05-08 15:51:33 -04:00
tx-helper.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
webcam-utils.js Remove unnecessary get environment type parameter (#7891) 2020-01-24 15:12:58 -04:00