1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +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:
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, restoreMessage: null,
}); });
} catch (e) { } catch (e) {
if (e.message.match(/Unexpected.+JSON/u)) { if (e.message.match(/Unexpected.+JSON/iu)) {
this.setState({ this.setState({
showResultMessage: true, showResultMessage: true,
restoreSuccessful: false, restoreSuccessful: false,