Skip to content

Commit 6be2bba

Browse files
committed
Merge branch 'master' of github.com:leancloud/javascript-sdk into feature/2015.07.09
2 parents 3335cef + 53bf1c6 commit 6be2bba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/utils.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
};
9898

9999
// Set the server for AV to talk to.
100-
AV.serverURL = "https://cn.avoscloud.com";
100+
AV.serverURL = "https://api.leancloud.cn";
101101

102102
// Check whether we are running in Node.js.
103103
if (typeof(process) !== "undefined" &&
@@ -128,6 +128,9 @@
128128
* @param {String} applicationKey Your AV Application Key
129129
*/
130130
AV._initialize = function(applicationId, applicationKey, masterKey) {
131+
if (AV.applicationId !== undefined) {
132+
console.warn('AVOSCloud SDK is already initialized, please don\'t reinitialize it.');
133+
}
131134
AV.applicationId = applicationId;
132135
AV.applicationKey = applicationKey;
133136
AV.masterKey = masterKey;

0 commit comments

Comments
 (0)