-
-
Notifications
You must be signed in to change notification settings - Fork 513
New Config Method .save() #573
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
Conversation
There was a problem hiding this 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!
_includes/js/config.md
Outdated
| ageOfParse : 3, | ||
| tags : ["parse","sdk","js"] | ||
| }).then(function(config) { | ||
| console.log("Cool! Config was saved ans fetched from the server."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo:
| console.log("Cool! Config was saved ans fetched from the server."); | |
| console.log("Cool! Config was saved and fetched from the server."); |
_includes/js/config.md
Outdated
| }).then(function(config) { | ||
| console.log("Cool! Config was saved ans fetched from the server."); | ||
|
|
||
| var welcomeMessage = config.get("welcomeMessage"); |
There was a problem hiding this comment.
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 :)
| var welcomeMessage = config.get("welcomeMessage"); | |
| const welcomeMessage = config.get("welcomeMessage"); |
_includes/js/config.md
Outdated
| ``` | ||
| ## 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when a
Master Keyis provided
ie: only in nodejs :)
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! Thanks
|
I just noticed that that i forgot to transform |
|
Not a big deal :) |
About the PR Parse.Config.save()