Crate quad_storage_sys

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§

clear
Remove all entries from local storage.
get
Get entry by key, if any.
key
Get key by its position
len
Number of elements in the local storage.
remove
Remove entry from the local storage.
set