Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

to sesion storage

kruzhambus21059cb6a737
diff --git a/src/pages/CrashHandler/index.tsx b/src/pages/CrashHandler/index.tsx
index a06818740..897047eb1 100644
--- a/src/pages/CrashHandler/index.tsx
+++ b/src/pages/CrashHandler/index.tsx
@@ -2,7 +2,6 @@ import React from 'react'
import _toString from 'lodash/toString'
import { ExclamationTriangleIcon, ChevronDownIcon, ChevronUpIcon } from '@heroicons/react/24/outline'
import { CONTACT_EMAIL, PAGE_FORCE_REFRESHED } from 'redux/constants'
-import { getItem, setItem } from 'utils/localstorage'
interface CrashHandlerProps {
children: JSX.Element
@@ -17,14 +16,14 @@ interface CrashHandlerState {
const retryPageLoading = () => {
const pageHasAlreadyBeenForceRefreshed = JSON.parse(
- getItem(PAGE_FORCE_REFRESHED) || 'false',
+ sessionStorage.getItem(PAGE_FORCE_REFRESHED) || 'false',
) as boolean
if (!pageHasAlreadyBeenForceRefreshed) {
- setItem(PAGE_FORCE_REFRESHED, 'true')
+ sessionStorage.setItem(PAGE_FORCE_REFRESHED, 'true')
return window.location.reload()
}
- setItem(PAGE_FORCE_REFRESHED, 'false')
+ sessionStorage.setItem(PAGE_FORCE_REFRESHED, 'false')
return null
}