[EOS] Please Provide Methods to Clear Tease Storage

Post all technical issues and questions here. We'll gladly help you wherever we can.
Post Reply
architect
Curious Newbie
Curious Newbie
Posts: 3
Joined: Tue Aug 02, 2022 10:32 pm

[EOS] Please Provide Methods to Clear Tease Storage

Post by architect »

Hi! I am EOS tease creator. I just find out that you have upgraded your system to store the Tease Storage values in your database for logged in users, rather than to store them in the browser.

Here are my questions:

1. Do you provide any API for creators to drop all Tease Storage from the current tease? It's inconvenient to debug, and there isn't an API to remove item yet. Only setItem and getItem are in the API reference.

2. Will you provide a button or something for *users* to clear their storage? Sometimes the users will need to purge the storage. For example, in the last year when users want to have a test run of a tease, they can just play through and then clear the browser storage, but now it seems impossible to clear the storage at server end.

Thank you!
verynicekojak
Explorer
Explorer
Posts: 88
Joined: Fri Aug 19, 2022 10:05 pm

Re: [EOS] Please Provide Methods to Clear Tease Storage

Post by verynicekojak »

There is, maybe undocumented, function for this:

Code: Select all

teaseStorage.clear()
other functions:

Code: Select all

teaseStorage.length
teaseStorage.key( i )
teaseStorage.getItem( key )
teaseStorage.setItem( key, value )
teaseStorage.removeItem( key )
So it seems that is is up to you to provide button for clearing the storage, and teases without such option can not be reseted.
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests