mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(client) join: urls check - string -> array
This commit is contained in:
parent
5c9182a84c
commit
bc7b2a7b9f
1 changed files with 2 additions and 2 deletions
|
|
@ -177,8 +177,8 @@ var Util, DOM, CloudFunc, join;
|
|||
this.join = function(urls) {
|
||||
var prefix = CloudCmd.PREFIX;
|
||||
|
||||
if (typeof urls !== 'string')
|
||||
throw Error('urls should be string!');
|
||||
if (!Array.isArray(urls))
|
||||
throw Error('urls should be array!');
|
||||
|
||||
urls = urls.map(function(url) {
|
||||
return url.replace(prefix, '');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue