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

update mus.js #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

update mus.js #4

wants to merge 2 commits into from

Conversation

danklee19
Copy link

Setting custom data don't work, because JSON.parse is missing...added

Setting custom data don't work, because JSON.parse is missing...added
@mauriciogior
Copy link
Member

@danklee19 Thanks. Could you add a check to verify if data is a JSON or a String prior to using JSON.parse?

@danklee19
Copy link
Author

danklee19 commented Dec 19, 2019

Ok, there are one simple check (first and last character)
The second check (regex) is not fine or complete, but it works 😄

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.

2 participants