()
| 438 | } |
| 439 | |
| 440 | function 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 |
no test coverage detected