add saving draft to localStorage

This commit is contained in:
2026-05-29 01:59:46 +03:00
parent 2f78c7459c
commit 3d633bd529
2 changed files with 27 additions and 1 deletions

View File

@@ -3,6 +3,10 @@ export const b = {
}
export function enhance(_, __, el) {
if (el === undefined) { // nothing to enhance but init still runs
return;
}
if (el.classList.contains('js-only')) {
el.classList.remove('js-only');
}