Ignore some error
parent
ded5371705
commit
53852a95c1
|
@ -83,6 +83,9 @@ export const ServiceWorker = () => {
|
|||
},
|
||||
|
||||
onRegisterError: (error) => {
|
||||
if (error instanceof Error && /permission|aborted/i.test(error.message)) {
|
||||
return
|
||||
}
|
||||
// eslint-disable-next-line no-console
|
||||
console.error('SW registration error', error)
|
||||
},
|
||||
|
|
|
@ -68,7 +68,10 @@ export default function ShareOrSaveSimulationBanner({
|
|||
url,
|
||||
})
|
||||
} catch (e) {
|
||||
if (e instanceof Error && e.toString().includes('AbortError')) {
|
||||
if (
|
||||
e instanceof Error &&
|
||||
(e.toString().includes('AbortError') || /permission/i.test(e.message))
|
||||
) {
|
||||
return
|
||||
}
|
||||
// eslint-disable-next-line no-console
|
||||
|
|
Loading…
Reference in New Issue