Skip to content

Commit 6cbbbaa

Browse files
sdjddleeyeh
andauthored
refactor: assign AV._config.production directly (#651)
Co-authored-by: Lee Yeh <[email protected]>
1 parent da6983e commit 6cbbbaa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/init.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ AV.init = function init(options, ...params) {
9797
}
9898
AV._config.applicationId = appId;
9999
AV._config.applicationKey = appKey;
100-
AV.setProduction(production);
100+
if (!isNullOrUndefined(production)) {
101+
AV.setProduction(production);
102+
}
101103
if (typeof disableCurrentUser !== 'undefined')
102104
AV._config.disableCurrentUser = disableCurrentUser;
103105
const disableAppRouter =

0 commit comments

Comments
 (0)