Big actor refactor; use local storage for auto-save.
This commit is contained in:
parent
ce0c002e8b
commit
816d9d149d
7 changed files with 321 additions and 202 deletions
11
modules/local-storage.scm
Normal file
11
modules/local-storage.scm
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue