mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
Case insensitive modifier for Firefox (#15831)
JSON.parse: unexpected character at line 1 column 1 of the JSON data JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
This commit is contained in:
parent
5f21cbeeff
commit
6bd284a016
@ -166,7 +166,7 @@ export default class AdvancedTab extends PureComponent {
|
||||
restoreMessage: null,
|
||||
});
|
||||
} catch (e) {
|
||||
if (e.message.match(/Unexpected.+JSON/u)) {
|
||||
if (e.message.match(/Unexpected.+JSON/iu)) {
|
||||
this.setState({
|
||||
showResultMessage: true,
|
||||
restoreSuccessful: false,
|
||||
|
Loading…
Reference in New Issue
Block a user