Fixed event detection bug on iOS Safari
Safari in iOS does not support the beforeunload event that FormPersistence previously relied on to know when to save form data to storage. In this release, the library additionally listens to unload events as a failsafe and removes the unload event listener if the beforeunload event successfully fires first.
If edge cases are discovered where neither beforeunload nor unload are fired, the pagehide event may be useful.