-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Require a server URL #608
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
Require a server URL #608
Conversation
@@ -82,7 +82,7 @@ function ParseServer({ | |||
facebookAppIds = [], | |||
enableAnonymousUsers = true, | |||
oauth = {}, | |||
serverURL = '', | |||
serverURL = (()=>{throw 'You must provide a serverURL!'})(), |
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.
let's use the same pattern on appId and masterKey then no?
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.
Sure, I don't see why not. I might actually give this pattern a name to make it more clear.
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.
Too bad we can't use '!!' as a function name. notOptional("serverURL")
, required
is confusing, compulsory
too long, provided
sounds weird,
@drew-gross updated the pull request. |
45be5cd
to
1a405a0
Compare
@drew-gross updated the pull request. |
Squash and merge? Love the 2 liners :) |
1a405a0
to
2dc080f
Compare
Throw at launch if no server url is provided. Hopefully this will reduce the number of issues that are opened.