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

Error with default CSS activator on custom link (#Intercom) #353

Open
igillis-clara opened this issue Jun 18, 2024 · 0 comments
Open

Error with default CSS activator on custom link (#Intercom) #353

igillis-clara opened this issue Jun 18, 2024 · 0 comments

Comments

@igillis-clara
Copy link

Please use the following template to submit your issue. Following this template will allow us to quickly investigate and help you with your issue. Please be aware that issues which do not conform to this template may be closed.

For feature requests please contact us at [email protected]

Version info

  • intercom-rails version: 1.0.1
  • Rails version: 7.1.3

Expected behavior

You can use the default CSS activator (class == "Intercom") with config.inbox.style = :custom as described in the documents without issue.

Actual behavior

If you do this and navigate between pages rapidly, you'll get the following error:

VM124 {app_id}:1 Uncaught TypeError: window[g] is not a function

window[g] seems to be the DOM element with id == 'Intercom'

Steps to reproduce

  1. Set config as follows:
 config.inbox.style = :custom
 config.hide_default_launcher = true
  1. Add a link somewhere with id="Intercom"
  2. Quickly navigate between pages in your app

Logs

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