discardDraft
function discardDraft(bytes): Promise<void>;Deletes the draft the editor kept in this browser for a file, given the
file’s bytes: the unsaved edits it would offer back when the file is
opened. For hosts that never open the file in an editor; with one open,
use its discardDraft(). Resolves once done, also when the file has no
draft or the browser’s storage is unavailable.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
bytes |
ArrayBuffer | Uint8Array<ArrayBufferLike> |
Returns
Section titled “Returns”Promise<void>