Hi,
I've tried to reproduce the issue with this code, but it worked both
on Chrome and
Firefox (i.e. "some data" is shown in the developer console.)
<script>
window.localforage = {
setItem: function(key, value, cb) {
cb("some data")
}
}
</script>
<script src="../../release/biwascheme.js">
(define localforage (js-eval "localforage"))
(define set-item!
(lambda (store key value callback)
(js-invoke store 'setItem key value
(js-closure callback))))
(set-item! localforage "key" "value"
(lambda (value)
(console-log value)))
</script>
2016-12-31 3:29 GMT+09:00 'Aeron Sioson' via BiwaScheme
<
biwas...@googlegroups.com>:
> Testing it out with:
>
> (set-item! some-storage "key" "value"
> (lambda (value)
> (console-log value)))
>
> The above just returns 'null' in the Firefox console. Am I doing it wrong?
> Am I going about this in the right direction? I didn't raise an issue on the
> Github page because I don't know if this is expected behavior or not.
>
> Please help.
>
--
Yutaka HARA