Include check for 'later' cookie within start method of tour

This commit is contained in:
Rachel Roppolo 2020-01-03 12:51:08 -08:00
parent c164bdf73a
commit 20e870fcf2

View File

@ -51,8 +51,14 @@
}); });
<% end %> <% end %>
// Don't start the tour if the user dismissed it once this session tour.start = function (start) {
if (!Cookies.get('<%= abraham_cookie_prefix %>-<%= tour_name %>', { domain: '<%= abraham_domain %>' })) { return function () {
tour.start(); // Don't start the tour if the user dismissed it once this session
} if (!Cookies.get('<%= abraham_cookie_prefix %>-<%= tour_name %>', {domain: '<%= abraham_domain %>'})) {
start();
}
}
}(tour.start)
tour.start()
</script> </script>