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

Function initHashRouting

script.js:440–446  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

438}
439
440function initHashRouting() {
441 // On back/forward navigation update the loaded note
442 window.addEventListener("hashchange", () => {
443 const note = noteFromHash();
444 if (note) loadNote(note);
445 });
446}
447
448// --- Splash screen --------------------------------------------
449

Callers 1

initFunction · 0.85

Calls 2

noteFromHashFunction · 0.85
loadNoteFunction · 0.85

Tested by

no test coverage detected