Hello when attempting to upload an avatar using uploadAvatar() I'm getting an error of image.match is not a function
Here is my code
var av = "https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885__480.jpg"
function uploadAvatar() {
community.uploadAvatar(av, function (err) {
if (err) {
console.log(err)
} else {
console.log(url)
}
}
)
}
Here is the full error
C:\Users\X\Documents\dev\X\node_modules\steamcommunity\components\profile.js:273
} else if(image.match(/^https?:\/\//)) {
^
TypeError: image.match is not a function
at SteamCommunity.uploadAvatar (C:\Users\X\Documents\dev\X\node_modules\steamcommunity\components\profile.js:273:18)
Thank you for any help