Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
urlJoin: function() {
// need varargs but Handlebars adds an arg to the end, so slice it off
var args = Array.apply(null, arguments).slice(0, arguments.length-1);
return urljoin.apply(null, args);
},
Device.prototype.url = function() {
var args = toArray(arguments);
args.unshift(this.httpBase);
return urljoin.apply(null, toArray(args));
};
var join = function(first) {
if (first === "/") {
return "/" + url_join.apply(url_join, [].splice.call(arguments, 1));
} else {
return url_join.apply(url_join, [].splice.call(arguments, 0));
}
}
var join = function(first) {
if (first === "/") {
return "/" + url_join.apply(url_join, [].splice.call(arguments, 1));
} else {
return url_join.apply(url_join, [].splice.call(arguments, 0));
}
}