1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 03:36:18 +02:00
metamask-extension/ui/app/pages/permissions-connect
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
..
choose-account Disable semicolons for class props (#7754) 2020-01-07 16:40:44 -03:30
permissions-connect-footer Connect distinct accounts per site (#7004) 2019-12-03 09:35:56 -08:00
permissions-connect-header Fix the permissions connect screen MetaMask logo (#7641) 2019-12-04 19:57:30 -04:00
index.js Connect distinct accounts per site (#7004) 2019-12-03 09:35:56 -08:00
index.scss Connect distinct accounts per site (#7004) 2019-12-03 09:35:56 -08:00
permissions-connect.component.js Remove unnecessary get environment type parameter (#7891) 2020-01-24 15:12:58 -04:00
permissions-connect.container.js Remove unnecessary withRouter and compose calls (#7890) 2020-01-24 15:12:49 -04:00