Big actor refactor; use local storage for auto-save.

This commit is contained in:
David Thompson 2024-05-20 22:12:35 -04:00
parent ce0c002e8b
commit 816d9d149d
7 changed files with 321 additions and 202 deletions

11
modules/local-storage.scm Normal file
View file

@ -0,0 +1,11 @@
(define-module (local-storage)
#:use-module (hoot ffi)
#:export (local-storage-ref
local-storage-set!))
(define-foreign local-storage-ref
"localStorage" "getItem"
(ref string) -> (ref string))
(define-foreign local-storage-set!
"localStorage" "setItem"
(ref string) (ref string) -> none)