Include check for 'later' cookie within start method of tour (#27)
Thanks @rroppolo!
This commit is contained in:
parent
0bdc88f4d8
commit
eac3fd0427
@ -51,8 +51,14 @@
|
|||||||
});
|
});
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
tour.start = function (start) {
|
||||||
|
return function () {
|
||||||
// Don't start the tour if the user dismissed it once this session
|
// Don't start the tour if the user dismissed it once this session
|
||||||
if (!Cookies.get('<%= abraham_cookie_prefix %>-<%= tour_name %>', { domain: '<%= abraham_domain %>' })) {
|
if (!Cookies.get('<%= abraham_cookie_prefix %>-<%= tour_name %>', {domain: '<%= abraham_domain %>'})) {
|
||||||
tour.start();
|
start();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}(tour.start)
|
||||||
|
|
||||||
|
tour.start()
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user