Crate quad_storage_sys

Source
Expand description

Provides access to the browser’s local storage.

Add file quad-storage/js/quad-storage.js to your project.

Add file sapp-jsutils/js/sapp_jsutils.js file to your project.

Add this lines after loading of gl.js and before loading of your wasm in your index.html:

<script src="sapp_jsutils.js"></script>
<script src="quad-storage.js"></script>

Done! Now you can use this crate.

Functions§

  • Remove all entries from local storage.
  • Get entry by key, if any.
  • Get key by its position
  • Number of elements in the local storage.
  • Remove entry from the local storage.