1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00

Do not modify isApproved when locked

This commit is contained in:
bitpshr 2018-11-04 12:19:47 -05:00 committed by Dan Finlay
parent 9984f7edeb
commit 31cb111d2e

View File

@ -129,9 +129,8 @@ class ProviderApprovalController {
* @returns {boolean} - True if the origin has been approved * @returns {boolean} - True if the origin has been approved
*/ */
isApproved (origin) { isApproved (origin) {
const isUnlocked = this.keyringController.memStore.getState().isUnlocked
const privacyMode = this.preferencesController.getFeatureFlags().privacyMode const privacyMode = this.preferencesController.getFeatureFlags().privacyMode
return !privacyMode || (isUnlocked && this.approvedOrigins[origin]) return !privacyMode || this.approvedOrigins[origin]
} }
/** /**