ErrorBoundary: clear IndexedDB too

revert-5af0e40a
Alex Gleason 2022-04-20 10:46:49 -05:00
rodzic 9d03b8ab93
commit 445327d139
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -7,6 +7,7 @@ import BuildConfig from 'soapbox/build_config';
import { Text, Stack } from 'soapbox/components/ui';
import SvgIcon from 'soapbox/components/ui/icon/svg-icon';
import { captureException } from 'soapbox/monitoring';
import KVStore from 'soapbox/storage/kv_store';
import sourceCode from 'soapbox/utils/code';
import type { RootState } from 'soapbox/store';
@ -91,6 +92,7 @@ class ErrorBoundary extends React.PureComponent<Props, State> {
clearCookies: React.MouseEventHandler = (e) => {
localStorage.clear();
sessionStorage.clear();
KVStore.clear();
if ('serviceWorker' in navigator) {
e.preventDefault();