Skip to content

Commit 1773109

Browse files
committed
fix: unset the default value for disableCurrentUser
fix leancloud/leanengine-node-sdk#116
1 parent acd4a4b commit 1773109

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ let _disableAppRouter = false;
5858
* @param {String} [options.region='cn'] region
5959
* @param {Boolean} [options.production]
6060
* @param {String|ServerURLs} [options.serverURLs] URLs for services. if a string was given, it will be applied for all services.
61-
* @param {Boolean} [options.disableCurrentUser=false]
61+
* @param {Boolean} [options.disableCurrentUser]
6262
*/
6363
AV.init = function init(options, ...params) {
6464
if (!isObject(options)) {
@@ -76,7 +76,7 @@ AV.init = function init(options, ...params) {
7676
hookKey,
7777
region = 'cn',
7878
serverURLs,
79-
disableCurrentUser = false,
79+
disableCurrentUser,
8080
production,
8181
realtime,
8282
} = options;

0 commit comments

Comments
 (0)