Fix firefox error on offline page for lazy import
parent
f108a6d7d1
commit
bfa006b62e
|
@ -97,7 +97,7 @@ const Router = () => {
|
|||
}
|
||||
|
||||
const CatchOffline = ({ error }: ComponentProps<FallbackRender>) => {
|
||||
if (error.message.includes('Failed to fetch dynamically imported module')) {
|
||||
if (error.message.includes('dynamically imported module')) {
|
||||
return <Offline />
|
||||
} else {
|
||||
throw error
|
||||
|
|
Loading…
Reference in New Issue