Merge pull request #680 from ParsePlatform/fosco.jssdk

Fix for JS SDK needing a key
This commit is contained in:
Fosco Marotto
2016-02-26 06:48:19 -08:00

View File

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