MCPcopy Create free account
hub / github.com/Make-md/makemd / getState

Method getState

src/adapters/obsidian/ui/editors/HTMLFileViewer.tsx:53–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 return;
52 }
53 getState(): any {
54 const state = super.getState();
55 state.file = this.file?.path;
56 // Store information to the state, whenever the workspace changes (opening a new note,...), the view's `getState` will be called, and the resulting state will be saved in the 'workspace' file
57
58 return state;
59 }
60
61 openPathInViewer = async (path: string) => {
62 const htmlPath = transformPath(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected