Attempts to restore the last opened file from IndexedDB. Reuses the internal file-processing flow, which dispatches file:ready on success.
file:ready
Called by main.ts on startup when sessionStorage indicates the user was in the editor before the page was reloaded.
main.ts
sessionStorage
The filename key used to look up the buffer in IndexedDB.
true if the buffer was found and the load process started; false if it was not found or an error occurred.
true
false
Attempts to restore the last opened file from IndexedDB. Reuses the internal file-processing flow, which dispatches
file:readyon success.Called by
main.tson startup whensessionStorageindicates the user was in the editor before the page was reloaded.