Include check for 'later' cookie within start method of tour (#27)

Thanks @rroppolo!
This commit is contained in:
Rachel Roppolo 2020-01-07 08:38:57 -08:00 committed by Jonathan Abbett
parent 0bdc88f4d8
commit eac3fd0427

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();
start();
}
}
}(tour.start)
tour.start()
</script>