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

JSON.stringify with 3 args is for pretty printing logs to the console. #14

Open
nickdesaulniers opened this issue Mar 22, 2013 · 2 comments

Comments

@nickdesaulniers
Copy link

Don't worry about prettifying HTML. Just use JSON.stringify(responseData)

$('authResult').innerHTML = JSON.stringify(responseData, true, 4);

@nickdesaulniers
Copy link
Author

Also, is why are the results of getting an access token added to the screen?

@nickdesaulniers
Copy link
Author

And why are we adding newlines to the html here too? Whitespace in html is not rendered.

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

No branches or pull requests

1 participant