Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
This commit is contained in:
parent
f9e8bb8e10
commit
944fbf27b7
2 changed files with 16 additions and 13 deletions
|
@ -12,7 +12,6 @@ export const chatBubble = document.createElement('div');
|
|||
export const closeBubble = document.createElement('div');
|
||||
|
||||
export const notificationBubble = document.createElement('span');
|
||||
const bodyOverFlowStyle = document.body.style.overflow;
|
||||
|
||||
export const createBubbleIcon = ({ className, src, target }) => {
|
||||
target.className = `${className} woot-elements--${window.$chatwoot.position}`;
|
||||
|
@ -45,11 +44,3 @@ export const onBubbleClick = () => {
|
|||
export const onClickChatBubble = () => {
|
||||
wootOn(bubbleHolder, 'click', onBubbleClick);
|
||||
};
|
||||
|
||||
export const disableScroll = () => {
|
||||
document.body.style.overflow = 'hidden';
|
||||
};
|
||||
|
||||
export const enableScroll = () => {
|
||||
document.body.style.overflow = bodyOverFlowStyle;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue