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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃悶] Partytown doesn't work with Chatwoot #515

Open
mariofernandu opened this issue Dec 20, 2023 · 2 comments
Open

[馃悶] Partytown doesn't work with Chatwoot #515

mariofernandu opened this issue Dec 20, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@mariofernandu
Copy link

Describe the bug

In the video, I create a chatwoot instance, and then I execute $chatwoot.toggle(); to show it.

The widget is transparent because partytown modify iframe.

Recording.2023-12-19.161821.mp4

I think the problem is in iframe

with partytown
image

without partytown
image

NUXT 3

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  devtools: { enabled: true },
  modules: [
    "nuxt-purgecss",
    "@nuxt/image",
    "@nuxtjs/partytown",
    "@productdevbook/chatwoot",
  ],
  partytown: {
    debug: true,
    forward: [
      "chatwootSDK.run",
      "chatwootSDK.run",

      "$chatwoot.toggle",
      "$chatwoot.toggle",

      "$chatwoot.isOpen",
      "$chatwoot.isOpen",

      "$chatwoot.websiteToken",
      "$chatwoot.websiteToken",
    ],
  },

.....

  chatwoot: {
    init: {
      websiteToken: "exampleToken",
      baseUrl: "https://chat.hostname.com",
    },
    // If this is loaded you can make it true, https://github.com/nuxt-modules/partytown
    partytown: true,
  },
});

Reproduction

N/A

Steps to reproduce

N/A

Browser Info

Edge

Additional Information

partytown 0.8.1

@mariofernandu mariofernandu added the bug Something isn't working label Dec 20, 2023
@gioboa
Copy link
Collaborator

gioboa commented Dec 20, 2023

Hi @mariofernandu, can you create a specific test in the codebase to reproduce this case pls?
A vanilla JS one will be awesome, thanks

@mariofernandu
Copy link
Author

Hi @mariofernandu, can you create a specific test in the codebase to reproduce this case pls? A vanilla JS one will be awesome, thanks

Hi thanks for your time and help

You can download the code of the test here

https://issue515.clotrservers.com/partytown-issue-515.zip

and view live here:

https://issue515.clotrservers.com/index.html

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

2 participants