Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Commit

Permalink
Changed logic to check for typeof currStepNum. Forcing tour to start …
Browse files Browse the repository at this point in the history
…at step 0 was not working.
  • Loading branch information
leedavidr committed Dec 2, 2013
1 parent 4c025eb commit 25140fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/hopscotch-0.1.2.js
Expand Up @@ -1856,7 +1856,7 @@
return this;
}

if (!currStepNum && currTour.id === cookieTourId && typeof cookieTourStep !== undefinedStr) {
if (typeof currStepNum === "undefined" && currTour.id === cookieTourId && typeof cookieTourStep !== undefinedStr) {
currStepNum = cookieTourStep;
}
else if (!currStepNum) {
Expand Down

0 comments on commit 25140fb

Please sign in to comment.