actmd / abraham

Trackable application tours for Rails with i18n support
MIT License
124 stars 45 forks source link

Uncaught SyntaxError: Identifier 'tour' has already been declared #26

Closed jabbett closed 5 years ago

jabbett commented 5 years ago

In v2, I switched from "var" to "const" to define the tour object.

When you navigate between tour-enabled pages with Turbolinks, you'll get the JS error:

Uncaught SyntaxError: Identifier 'tour' has already been declared

We need to fix this for Turbolinks users.