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

Intercom chat window doesn't appear #321

Closed
KieronWiltshire opened this issue Nov 18, 2024 · 1 comment
Closed

Intercom chat window doesn't appear #321

KieronWiltshire opened this issue Nov 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@KieronWiltshire
Copy link

KieronWiltshire commented Nov 18, 2024

🐛 The bug

When clicking on the intercom icon, the chat window doesn't appear. The <body> tag of the iframe is empty.

🌈 Expected behavior

The chat window should appear.

ℹ️ Additional context

<script setup lang="ts">
const config = useRuntimeConfig();
</script>

<template>
  <ScriptIntercom :app-id="config.intercomId" class="fixed">
    <div class="flex items-center justify-center size-12 rounded-full bg-gradient-to-r from-primary to-tertiary hover:bg-gradient-to-l hover:cursor-pointer">
      <svg width="24" height="24" class="size-6" xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 28 32"><path d="M28 32s-4.714-1.855-8.527-3.34H3.437C1.54 28.66 0 27.026 0 25.013V3.644C0 1.633 1.54 0 3.437 0h21.125c1.898 0 3.437 1.632 3.437 3.645v18.404H28V32zm-4.139-11.982a.88.88 0 00-1.292-.105c-.03.026-3.015 2.681-8.57 2.681-5.486 0-8.517-2.636-8.571-2.684a.88.88 0 00-1.29.107 1.01 1.01 0 00-.219.708.992.992 0 00.318.664c.142.128 3.537 3.15 9.762 3.15 6.226 0 9.621-3.022 9.763-3.15a.992.992 0 00.317-.664 1.01 1.01 0 00-.218-.707z" /></svg>
    </div>
  </ScriptIntercom>
</template>

Image
Image

@KieronWiltshire KieronWiltshire added the bug Something isn't working label Nov 18, 2024
@KieronWiltshire
Copy link
Author

Nvm, wasn't passing in a valid ID. Would be nice to have some sort of feedback/error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant