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
feature/default_network_editable
PeterYinusa 2 years ago committed by GitHub
parent e5da67515c
commit eb176c721b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui/pages/settings/advanced-tab/advanced-tab.component.js

@ -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…
Cancel
Save