Skip to content

Commit

Permalink
modify guidechimp page check
Browse files Browse the repository at this point in the history
  • Loading branch information
v-rudkovskiy committed Feb 7, 2020
1 parent d354db9 commit f3d0bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/assets/admin/js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
var guideChimp = new GuideChimp();

guideChimp.on('onBeforeChange', function (tour, fromStep, toStep) {
if (toStep.page) {
if (toStep.page && window.location.href.indexOf(toStep.page) < 0) {
guidedTourData.currentStep = tour.steps.indexOf(toStep);
guidedTourData.isStarted = true;
localStorage.setItem('guidedTourData', JSON.stringify(guidedTourData));
Expand Down

0 comments on commit f3d0bd2

Please sign in to comment.