Skip to content

Update middleware sample code in README #808

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

Merged
merged 1 commit into from
Nov 8, 2017

Conversation

jlpiedrahita
Copy link
Contributor

Since 1.1.1 options to the middleware are passed as an object. This is not reflected in the main README file where for instance allowInsecureHTTP is still passed as an standalone boolean:

var allowInsecureHTTP = false
var dashboard = new ParseDashboard({
	// Parse Dashboard settings
}, allowInsecureHTTP);

Where the sample code should be in the form:

var options = { allowInsecureHTTP: false };
var dashboard = new ParseDashboard({
	// Parse Dashboard settings
}, options);

The lack of this update was driving me crazy for a couple of hours. Hope this help others.

@flovilmart flovilmart merged commit cc78438 into parse-community:master Nov 8, 2017
@flovilmart
Copy link
Contributor

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.

2 participants