We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3335cef + 53bf1c6 commit 6be2bbaCopy full SHA for 6be2bba
lib/utils.js
@@ -97,7 +97,7 @@
97
};
98
99
// Set the server for AV to talk to.
100
- AV.serverURL = "https://cn.avoscloud.com";
+ AV.serverURL = "https://api.leancloud.cn";
101
102
// Check whether we are running in Node.js.
103
if (typeof(process) !== "undefined" &&
@@ -128,6 +128,9 @@
128
* @param {String} applicationKey Your AV Application Key
129
*/
130
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
+ }
134
AV.applicationId = applicationId;
135
AV.applicationKey = applicationKey;
136
AV.masterKey = masterKey;
0 commit comments