ErrorBoundary: clear IndexedDB too
This commit is contained in:
parent
9d03b8ab93
commit
445327d139
|
@ -7,6 +7,7 @@ import BuildConfig from 'soapbox/build_config';
|
||||||
import { Text, Stack } from 'soapbox/components/ui';
|
import { Text, Stack } from 'soapbox/components/ui';
|
||||||
import SvgIcon from 'soapbox/components/ui/icon/svg-icon';
|
import SvgIcon from 'soapbox/components/ui/icon/svg-icon';
|
||||||
import { captureException } from 'soapbox/monitoring';
|
import { captureException } from 'soapbox/monitoring';
|
||||||
|
import KVStore from 'soapbox/storage/kv_store';
|
||||||
import sourceCode from 'soapbox/utils/code';
|
import sourceCode from 'soapbox/utils/code';
|
||||||
|
|
||||||
import type { RootState } from 'soapbox/store';
|
import type { RootState } from 'soapbox/store';
|
||||||
|
@ -91,6 +92,7 @@ class ErrorBoundary extends React.PureComponent<Props, State> {
|
||||||
clearCookies: React.MouseEventHandler = (e) => {
|
clearCookies: React.MouseEventHandler = (e) => {
|
||||||
localStorage.clear();
|
localStorage.clear();
|
||||||
sessionStorage.clear();
|
sessionStorage.clear();
|
||||||
|
KVStore.clear();
|
||||||
|
|
||||||
if ('serviceWorker' in navigator) {
|
if ('serviceWorker' in navigator) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
Loading…
Reference in New Issue