Skip to content

Commit

Permalink
Update RigoContext.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
tommygonzaleza authored Nov 26, 2024
1 parent a7d257b commit 62f734b
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/common/context/RigoContext.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,14 @@ function RigoProvider({ children }) {
<Script
src="https://unpkg.com/rigobot-chat-bubble@0.0.59/dist/main.js"
onLoad={() => {
<<<<<<< HEAD
window.rigo.init(process.env.RIGOBOT_HASH, {
context: '',
});
window.rigo.show({
showBubble: false,
});
setIsRigoInitialized(true);
=======
const persistedRigoChat = localStorage.getItem('rigo_chat');
const allowRigo = getQueryString('rigo_chat', persistedRigoChat);
if (allowRigo && allowRigo.toLowerCase() === 'true') {
localStorage.setItem('rigo_chat', 'true');
window.rigo.init(process.env.RIGOBOT_HASH, {
context: '',
});
window.rigo.show({
collapsed: true,
showBubble: false,
});
setIsRigoInitialized(true);
}
>>>>>>> e124a8acbcf9e0dc076fed9eb19fd3a3531c4689
}}
/>
{children}
Expand Down

0 comments on commit 62f734b

Please sign in to comment.