storage.py: Local import of localforage.js instead of a CDN #403
Unanswered
benlawraus
asked this question in
Q&A
Replies: 1 comment
-
Add a script tag in your native libraries in the standard way where the src is This will put localForage on window and will stop anvil-extras importing it from CDN. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
In your storage.py:
can you help me rewrite this so that I can have the localforage module as an asset?
The following code is wrong, because _ForageModule doesn't have a default.
Thank you for your time!
Beta Was this translation helpful? Give feedback.
All reactions