Repository navigation
Fixed
- The SDK no longer breaks for the whole page session when
localStorage.getItemthrows. Firefox does this when a profile's storage is corrupt (NS_ERROR_FILE_CORRUPTED): the failed read during startup rejectedsw.ready, and every later call (identify,setAttributes,register, …) rejected with the sameStorageGetErroruntil reload. The browser storage adapter now treats a failed read as empty and falls back to the cookie mirror (#17) - A corrupt stored first-touch attribution (
superwall.attribution) no longer rejectssw.readywith aSyntaxError. It reads as empty and is overwritten with this visit's attribution - Storage errors that aren't
Errorinstances (Firefox's storage exceptions) are now described by theirname/messageinstead of printing as{}
Packages
All published to npm at 0.3.2:
@superwall/core@superwall/paywalls-js@superwall/paywalls-react@superwall/server@superwall/verify
Full changelog: https://github.com/superwall/Superwall-Web/blob/0.3.2/CHANGELOG.md