Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Olark Hummingbird theme #78

Open
matt297 opened this issue Apr 5, 2017 · 0 comments
Open

Olark Hummingbird theme #78

matt297 opened this issue Apr 5, 2017 · 0 comments

Comments

@matt297
Copy link

matt297 commented Apr 5, 2017

As of March/April 2017, Olark started forcefully upgrading all chat widget installations to use their new Hummingbird theme. For us, this broke our implementation using the currently outlined solution.

Discussions with their support staff suggested we try an approach similar to their jQuery mmenu fix, which essentially tells the jquery-mmenu plugin to leave the olark chatbox alone (i.e. keep it on the page) when it rewrites the DOM.

The solution we ended up using relies on Turbolinks 5's data-turbolinks-permanent implementation to copy elements between pages. In our particular case we had caching disabled, and the solution uses jQuery syntax. While it could probably be refactored to apply more broadly, I figured it was worth sharing in the meantime in case anyone had run into similar issues.

You can find our solution below:
https://gist.github.com/matt297/af62b0c80ab09df30e9d5d71b5f53d0a

UPDATE: While our solution does allow the chatbox to persist across pages (and the chatbox still allows users to send messages and interact with it as expected), those messages never actually reach the live chat operator and vice versa. Will update this issue if/when we have a full fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant