1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00
metamask-extension/app/scripts/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
..
ens-ipfs Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
migrator Clean up Migrator test cases (#7835) 2020-01-15 13:54:28 -08:00
account-tracker.js Consistent jsdoc syntax (#7755) 2020-01-13 14:36:36 -04:00
auto-reload.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
backend-metametrics.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
buy-eth-url.js Consistent jsdoc syntax (#7755) 2020-01-13 14:36:36 -04:00
cleanErrorStack.js Consistent jsdoc syntax (#7755) 2020-01-13 14:36:36 -04:00
ComposableObservableStore.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
createDnodeRemoteGetter.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
createLoggerMiddleware.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
createOnboardingMiddleware.js Login per site onboarding (#7602) 2019-12-20 12:02:31 -03:30
createOriginMiddleware.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
createStreamSink.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
enums.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
extractEthjsErrorMessage.js Consistent jsdoc syntax (#7755) 2020-01-13 14:36:36 -04:00
fetch-with-timeout.js Combine fetch-with-timeout implementations (#7084) 2019-09-04 17:00:11 -03:00
freezeGlobals.js Consistent jsdoc syntax (#7755) 2020-01-13 14:36:36 -04:00
get-first-preferred-lang-code.js Consistent jsdoc syntax (#7755) 2020-01-13 14:36:36 -04:00
getObjStructure.js Consistent jsdoc syntax (#7755) 2020-01-13 14:36:36 -04:00
local-store.js Consistent jsdoc syntax (#7755) 2020-01-13 14:36:36 -04:00
message-manager.js Consistent jsdoc syntax (#7755) 2020-01-13 14:36:36 -04:00
network-store.js Consistent jsdoc syntax (#7755) 2020-01-13 14:36:36 -04:00
nodeify.js Consistent jsdoc syntax (#7755) 2020-01-13 14:36:36 -04:00
notification-manager.js Consistent jsdoc syntax (#7755) 2020-01-13 14:36:36 -04:00
pending-balance-calculator.js Consistent jsdoc syntax (#7755) 2020-01-13 14:36:36 -04:00
personal-message-manager.js Consistent jsdoc syntax (#7755) 2020-01-13 14:36:36 -04:00
random-id.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
reportFailedTxToSentry.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
seed-phrase-verifier.js Consistent jsdoc syntax (#7755) 2020-01-13 14:36:36 -04:00
select-chain-id.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
setupFetchDebugging.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
setupSentry.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
stream-utils.js Consistent jsdoc syntax (#7755) 2020-01-13 14:36:36 -04:00
typed-message-manager.js Consistent jsdoc syntax (#7755) 2020-01-13 14:36:36 -04:00
util.js Remove unnecessary get environment type parameter (#7891) 2020-01-24 15:12:58 -04:00