sjmc11 / tourguide-js

TourGuide is a Javascript library for creating user tours and on-boarding steps for your apps.
https://tourguidejs.com
MIT License
616 stars 31 forks source link

Fix `tourGroup` not being set in localStorage and `handleFinishTour()` not closing modal on first call. #11

Closed mjgwood closed 1 year ago

mjgwood commented 1 year ago

Fixes #8 and #9

9 can be demonstrated on https://tourguidejs.com/:

  1. Open the storage tab in dev tools and ensure 'tg_tours_complete' does not exist in localStorage
  2. Go through the tour and click 'Finish' - this will add 'tour' as the value for 'tg_tours_complete' in localStorage, but the tour modal will not close
  3. Click 'Finish' a second time - now the tour modal will close