()
| 42 | // and remove the unload event if the beforeunload event fires successfully. |
| 43 | // If problems persist, we can add listeners on the pagehide event as well. |
| 44 | let saveForm = () => save(form, config) |
| 45 | let saveFormBeforeUnload = () => { |
| 46 | window.removeEventListener('unload', saveForm) |
| 47 | saveForm() |
no test coverage detected