Skip to content

Commit

Permalink
update image url (#2689)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouhongmei89 authored Dec 3, 2024
1 parent e8684f6 commit a4323b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/js/browser/avatar/js/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -759,13 +759,13 @@ window.updateTypeMessageBox = () => {
}
})
document.getElementById('uploadImgIcon').addEventListener('click', function() {
imgUrl = "https://samples-files.com/samples/Images/jpg/1920-1080-sample.jpg"
imgUrl = "https://wallpaperaccess.com/full/528436.jpg"
const userMessage = document.getElementById("userMessageBox");
const childImg = userMessage.querySelector("#picInput");
if (childImg) {
userMessage.removeChild(childImg)
}
userMessage.innerHTML+='<br/><img id="picInput" src="https://samples-files.com/samples/Images/jpg/1920-1080-sample.jpg" style="width:100px;height:100px"/><br/><br/>'
userMessage.innerHTML+='<br/><img id="picInput" src="https://wallpaperaccess.com/full/528436.jpg" style="width:100px;height:100px"/><br/><br/>'
});
} else {
document.getElementById('userMessageBox').hidden = true
Expand Down

0 comments on commit a4323b1

Please sign in to comment.