MCPcopy Create free account
hub / github.com/Alfredredbird/CyberKelp / navigateBack

Function navigateBack

script.js:25–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25function navigateBack() {
26 if (navPos <= 0) return;
27 navPos--;
28 navSkip = true;
29 const note = NOTES.find(n => n.id === navStack[navPos]);
30 if (note) loadNote(note);
31 navSkip = false;
32}
33
34function navigateForward() {
35 if (navPos >= navStack.length - 1) return;

Callers 1

initKeyboardShortcutsFunction · 0.85

Calls 1

loadNoteFunction · 0.85

Tested by

no test coverage detected