MCPcopy Create free account
hub / github.com/FThompson/FormPersistence.js / saveForm

Function saveForm

form-persistence.js:44–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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()

Callers 1

saveFormBeforeUnloadFunction · 0.85

Calls 1

saveFunction · 0.85

Tested by

no test coverage detected