Closed asgeir-s closed 2 years ago
Apparently, Firefox does not support this: https://developer.mozilla.org/en-US/docs/Web/API/Location/ancestorOrigins#browser_compatibility
We need an alternative for when window.location.ancestorOrigins
is undefined.
Getting this error in the dev environment (https://zodiac.dev.gnosisguild.org/), when loading it in a Safe and clicking on the "Reality Module" button in Firefox:
TypeError: window.location.ancestorOrigins is undefined
Related code: https://github.com/gnosis/zodiac-safe-app/blob/fb1b60918827f7794d344e5715350a28f4f3cd64/packages/app/src/utils/safeAppLink.ts#L5