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

No API to clean up aircall client/event listeners #22

Open
bent0b0x opened this issue Jul 14, 2020 · 0 comments
Open

No API to clean up aircall client/event listeners #22

bent0b0x opened this issue Jul 14, 2020 · 0 comments

Comments

@bent0b0x
Copy link

The AircallPhone class adds event listeners to the window object (this.w) upon instantiation here.

However, as far as I can tell there is no way to clean up this listener (and any other side effect that instantiation may cause). Thus, once you load the aircall iframe in your app there is no true way to do a full cleanup once the call flow is over.

It would be great to have some sort of .destroy() method to clean up the client.

Thank you in advance for taking a look!

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

No branches or pull requests

1 participant