chore: Add alt for bubble icon (#1200)

This commit is contained in:
Pranav Raj S 2020-09-04 19:13:22 +05:30 committed by GitHub
parent afb5694ed6
commit 715bd368f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,6 +28,7 @@ export const createBubbleIcon = ({ className, src, target }) => {
let bubbleClassName = `${className} woot-elements--${window.$chatwoot.position}`;
const bubbleIcon = document.createElement('img');
bubbleIcon.src = src;
bubbleIcon.alt = 'bubble-icon';
target.appendChild(bubbleIcon);
if (isExpandedView(window.$chatwoot.type)) {