1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02: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:
PeterYinusa 2022-09-14 18:16:21 +01:00 committed by PeterYinusa
parent 5f21cbeeff
commit 6bd284a016

View File

@ -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,