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 %>
tour.start = function (start) {
return function () {
// Don't start the tour if the user dismissed it once this session
if (!Cookies.get('<%= abraham_cookie_prefix %>-<%= tour_name %>', { domain: '<%= abraham_domain %>' })) {
tour.start();
if (!Cookies.get('<%= abraham_cookie_prefix %>-<%= tour_name %>', {domain: '<%= abraham_domain %>'})) {
start();
}
}
}(tour.start)
tour.start()
</script>