Improve settings storage
- add error reporting - refactor
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
import * as React from 'react'
|
||||
import PersistantStorage from './PersistantStorage'
|
||||
import SentimentDissatisfied from '@material-ui/icons/SentimentDissatisfied'
|
||||
import Warning from '@material-ui/icons/Warning'
|
||||
import { electronRendererTelementry } from 'electron-telemetry'
|
||||
import { Theme, withStyles } from '@material-ui/core/styles'
|
||||
import {
|
||||
Button,
|
||||
Modal,
|
||||
@@ -8,11 +12,6 @@ import {
|
||||
Typography,
|
||||
} from '@material-ui/core'
|
||||
|
||||
import Warning from '@material-ui/icons/Warning'
|
||||
import SentimentDissatisfied from '@material-ui/icons/SentimentDissatisfied'
|
||||
|
||||
import { Theme, withStyles } from '@material-ui/core/styles'
|
||||
|
||||
interface State {
|
||||
error?: Error
|
||||
}
|
||||
@@ -41,7 +40,7 @@ class ErrorBoundary extends React.Component<Props, State> {
|
||||
}
|
||||
|
||||
private clearStorage = () => {
|
||||
localStorage.clear()
|
||||
PersistantStorage.clear()
|
||||
window.location = window.location
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user