Skip to content

Commit 49b9a12

Browse files
committed
fix(init): fill up serverURLs if got a string
1 parent e22c651 commit 49b9a12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ AV.init = function init(options, ...params) {
9696
{},
9797
getDefaultServerURLs(appId, region),
9898
AV._config.serverURLs,
99-
serverURLs
99+
typeof serverURLs === 'string' ? fillServerURLs(serverURLs) : serverURLs,
100100
), disableAppRouter);
101101
if (realtime) {
102102
AV._config.realtime = realtime;

0 commit comments

Comments
 (0)