Showing: news tagged “Unclaimed Prize”
No news tagged “Unclaimed Prize”
cher() { const allowedPathsFromTarget = window.chatbotPathsViaTarget || []; // Merge default paths with configured paths (remove duplicates) const pathsToCheck = [...new Set([...defaultPaths, ...allowedPathsFromTarget])]; const onAllowedPage = pathsToCheck.some(({ path, exact }) => exact ? window.location.pathname === path : window.location.pathname.startsWith(path) ); return onAllowedPage || hasActiveChat; } function updateLauncherVisibility() { customLauncher.style.display = shouldShowLauncher() ? "block" : "none"; } Genesys("subscribe", "Messenger.ready", () => { // Initially show only if page is allowed (no active chat yet) updateLauncherVisibility(); }); // Fires when the messenger is opened via button click or when arriving on another page if the chat window was already opened Genesys("subscribe", "Messenger.opened", () => { bMessengerOpened = true; hasActiveChat = true; launcherButton.classList.add("messenger-open"); if (tooltip) tooltip.classList.add("tooltip-hidden"); updateLauncherVisibility(); }); // Fires when the messenger is closed via button click or when using the minimise icon located inside the chat window Genesys("subscribe", "Messenger.closed", () => { bMessengerOpened = false; launcherButton.classList.remove("messenger-open"); }); launcherButton.addEventListener("click", () => { Genesys("command", bMessengerOpened ? "Messenger.close" : "Messenger.open"); }); }