Skip to content

Conversation

@Moumouls
Copy link
Member

Copy link
Contributor

@flovilmart flovilmart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nits otherwise that's cool!

ageOfParse : 3,
tags : ["parse","sdk","js"]
}).then(function(config) {
console.log("Cool! Config was saved ans fetched from the server.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo:

Suggested change
console.log("Cool! Config was saved ans fetched from the server.");
console.log("Cool! Config was saved and fetched from the server.");

}).then(function(config) {
console.log("Cool! Config was saved ans fetched from the server.");

var welcomeMessage = config.get("welcomeMessage");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prefer const, it's 2018 :)

Suggested change
var welcomeMessage = config.get("welcomeMessage");
const welcomeMessage = config.get("welcomeMessage");

```
## Save a Config

`ParseConfig` can be managed through the SDK when a `Master Key` is provided. You can save new parameters and if you save already existing parameters they will be automatically updated.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when a Master Key is provided

ie: only in nodejs :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesn't works in a browser with a masterkey ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Master key should NEVER be exposed in the browser! and the JS SDK doesn’t support passing a third argument.

Copy link
Contributor

@flovilmart flovilmart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! Thanks

@flovilmart flovilmart merged commit 6952214 into parse-community:gh-pages Nov 13, 2018
@Moumouls
Copy link
Member Author

I just noticed that that i forgot to transform function(){} to () => {}

@flovilmart
Copy link
Contributor

Not a big deal :)

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