Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue where re-loading history.js adapter breaks scripts when minifi... #414

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shahruk
Copy link

@shahruk shahruk commented Oct 9, 2014

History.js adapter throws an error saying it has already been loaded. However, on a server that minifies multiple javascript files and compresses them into one, this results in an error that breaks the entire script which is poor practice.

A console.log and a return statement accomplish the same functionality while preserving functionality and not breaking existing scripts on a site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant