promptUnsavedChanges()
promptUnsavedChanges(
editors,options?):Promise<UnsavedOutcome>
Defined in: js-api/src/ui/domains/domains-editor.ts:1316
Asks what to do with the pending changes of [editors] before something that would discard them. Resolves to the user's decision WITHOUT applying it — confirmDiscardChanges is the one that saves or discards.
Parameters
| Parameter | Type |
|---|---|
editors | DomainFrameEditor[] |
options? | UnsavedPromptOptions |
Returns
Promise<UnsavedOutcome>