-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use localstorage option in sysend #41
Comments
Do you mean Does BroadcastChannel throw some kind of error when used from filesystem? If that's the case I can easily use localStorage as a fallback. With this you will not need to specify the option, it will work out of the box. |
I think that I can add this API: sysend.setup({ mode: 'localStorage' });
// or
sysend.useLocalStorage(); |
New API added in version 1.14.0 |
Hi, Sorry for not responding saw the comments only now. BroadcastChannel didn't throw any errors as I remember. I'll investigate and get back. Thank you very much for this option. |
I just checked the file:// protocol and it works without issues. Just open demo.html in the browser. |
But the option will also be useful. I'll update the demo to be able to turn off BroadcastChannel for testing. |
I've updated the demo to allow to turn off the localStorage and fix the parsing of |
Hi, great library.
It would be nice if we can tell sysend to use localStorage instead of BroadcastChannel throgh options.
The use case is offline web application that run from filesystem.
Thanks
The text was updated successfully, but these errors were encountered: