chore: Move referrerHost to appConfig store (#3433)
This commit is contained in:
parent
1be7c2d72c
commit
1a8b8f0900
11 changed files with 138 additions and 81 deletions
|
@ -1,4 +1,4 @@
|
|||
import { addClass, toggleClass, wootOn } from './DOMHelpers';
|
||||
import { addClass, removeClass, toggleClass, wootOn } from './DOMHelpers';
|
||||
import { IFrameHelper } from './IFrameHelper';
|
||||
import { BUBBLE_DESIGN } from './constants';
|
||||
|
||||
|
@ -74,3 +74,13 @@ export const onBubbleClick = (props = {}) => {
|
|||
export const onClickChatBubble = () => {
|
||||
wootOn(bubbleHolder, 'click', onBubbleClick);
|
||||
};
|
||||
|
||||
export const addUnreadClass = () => {
|
||||
const holderEl = document.querySelector('.woot-widget-holder');
|
||||
addClass(holderEl, 'has-unread-view');
|
||||
};
|
||||
|
||||
export const removeUnreadClass = () => {
|
||||
const holderEl = document.querySelector('.woot-widget-holder');
|
||||
removeClass(holderEl, 'has-unread-view');
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue