Fix for JS SDK needing a key

This commit is contained in:
Fosco Marotto
2016-02-26 06:00:41 -08:00
parent 791c5512aa
commit 6a17eca69c

View File

@@ -79,10 +79,10 @@ function ParseServer({
databaseURI,
cloud,
collectionPrefix = '',
clientKey = '',
javascriptKey = randomString(20),
dotNetKey = '',
restAPIKey = '',
clientKey,
javascriptKey,
dotNetKey,
restAPIKey,
fileKey = 'invalid-file-key',
facebookAppIds = [],
enableAnonymousUsers = true,
@@ -92,7 +92,7 @@ function ParseServer({
}) {
// Initialize the node client SDK automatically
Parse.initialize(appId, javascriptKey, masterKey);
Parse.initialize(appId, javascriptKey || 'unused', masterKey);
Parse.serverURL = serverURL;
if (databaseAdapter) {