Skip to content
Permalink
Browse files Browse the repository at this point in the history
fix: use innerText instead of innerHTML (#6431)
* refactor: use inner text instead of inner html

* refactor: use innerText instead of innerHTML
  • Loading branch information
scmmishra committed Feb 10, 2023
1 parent 8db40f2 commit a06a5a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/javascript/sdk/bubbleHelpers.js
Expand Up @@ -16,7 +16,7 @@ export const notificationBubble = document.createElement('span');
export const setBubbleText = bubbleText => {
if (isExpandedView(window.$chatwoot.type)) {
const textNode = document.getElementById('woot-widget--expanded__text');
textNode.innerHTML = bubbleText;
textNode.innerText = bubbleText;
}
};

Expand Down Expand Up @@ -46,7 +46,7 @@ export const createBubbleIcon = ({ className, path, target }) => {
if (isExpandedView(window.$chatwoot.type)) {
const textNode = document.createElement('div');
textNode.id = 'woot-widget--expanded__text';
textNode.innerHTML = '';
textNode.innerText = '';
target.appendChild(textNode);
bubbleClassName += ' woot-widget--expanded';
}
Expand Down

0 comments on commit a06a5a5

Please sign in to comment.