LinkedInAttic / hopscotch

A framework to make it easy for developers to add product tours to their pages.
Apache License 2.0
4.19k stars 664 forks source link

How do I disable local storage? #335

Closed ashleydavis closed 7 years ago

ashleydavis commented 7 years ago

This is a great little toolkit. But the local storage feature is driving me crazy.

Can I force it to restart at the first step?

Or is there anyway to disable local storage and have the tour restart from fresh every time?

travstone commented 7 years ago

I think you can use hopscotch.endTour(true) which will clear the cookie/session storage; I haven't used this in a while though. Have a look at the API methods: http://linkedin.github.io/hopscotch/#api-methods

ashleydavis commented 7 years ago

Yeah I tried that but it causes a console error and doesn't solve the problem.

I've abandoned this anyway as I discovered it doesn't work well on mobile.