Binary Raw - Docs
    Preparing search index...

    Function restoreLastFile

    • Attempts to restore the last opened file from IndexedDB. Reuses the internal file-processing flow, which dispatches file:ready on success.

      Called by main.ts on startup when sessionStorage indicates the user was in the editor before the page was reloaded.

      Parameters

      • name: string

        The filename key used to look up the buffer in IndexedDB.

      Returns Promise<boolean>

      true if the buffer was found and the load process started; false if it was not found or an error occurred.