MCPcopy
hub / github.com/witheve/Eve / revertDocument

Method revertDocument

src/ide.ts:2287–2295  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2285 }
2286
2287 revertDocument() {
2288 if(!this.documentId || !this.loaded) return;
2289 let docId = this.documentId;
2290 let saves = JSON.parse(localStorage.getItem("eve-saves") || "{}");
2291 delete saves[docId];
2292 localStorage.setItem("eve-saves", JSON.stringify(saves));
2293 this.documentId = undefined;
2294 this.loadFile(docId);
2295 }
2296
2297 cloneDocument(neueId:string) {
2298 let oldId = this.documentId;

Callers

nothing calls this directly

Calls 1

loadFileMethod · 0.95

Tested by

no test coverage detected