mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge branch 'localStorage-clean-up' of https://github.com/MetaMask/metamask-extension into localStorage-clean-up
This commit is contained in:
commit
7e14468013
@ -3,6 +3,7 @@
|
||||
## Current Master
|
||||
|
||||
- Remove BlacklistController from disk state
|
||||
- Add warning for importing some kinds of files.
|
||||
|
||||
## 3.13.8 2018-1-29
|
||||
|
||||
|
@ -81,6 +81,12 @@ JsonImportSubview.prototype.createKeyringOnEnter = function (event) {
|
||||
|
||||
JsonImportSubview.prototype.createNewKeychain = function () {
|
||||
const state = this.state
|
||||
|
||||
if (!state) {
|
||||
const message = 'You must select a valid file to import.'
|
||||
return this.props.dispatch(actions.displayWarning(message))
|
||||
}
|
||||
|
||||
const { fileContents } = state
|
||||
|
||||
if (!fileContents) {
|
||||
|
Loading…
Reference in New Issue
Block a user