fix(client) join: urls check - string -> array

This commit is contained in:
coderaiser 2015-08-11 07:00:43 -04:00
parent 5c9182a84c
commit bc7b2a7b9f

View file

@ -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, '');