diff --git a/app/views/application/_abraham.html.erb b/app/views/application/_abraham.html.erb index ffec748..a743d5d 100644 --- a/app/views/application/_abraham.html.erb +++ b/app/views/application/_abraham.html.erb @@ -51,8 +51,14 @@ }); <% end %> - // 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(); - } + 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 %>'})) { + start(); + } + } + }(tour.start) + + tour.start()