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 "Uncaught TypeError: linkparts.shift is not a function" error #41

Merged
merged 4 commits into from
Jul 12, 2019

Conversation

christianroy
Copy link
Contributor

Sorry I was not able to provide a test for this fix as this happened in copyrighted EPUB which I cannot share. And honestly, I am not sure I quite understand what types of links would trigger the crash... :( But this change fixes it (it avoids calling .shift when linkparts is not an array.

@julien-c julien-c merged commit d117153 into julien-c:master Jul 12, 2019
@julien-c
Copy link
Owner

looks good to me, thanks

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

2 participants