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

Confetti doesn't work after obfuscation. #166

Open
romua opened this issue Oct 26, 2021 · 5 comments
Open

Confetti doesn't work after obfuscation. #166

romua opened this issue Oct 26, 2021 · 5 comments
Labels
info needed Extra information is needed to address the issue

Comments

@romua
Copy link

romua commented Oct 26, 2021

2dba049b-ab0e-4504-acab-22196978863e

@romua
Copy link
Author

romua commented Oct 26, 2021

@catdad Could you please help with this?

"javascript-obfuscator": "^2.11.0" used

@catdad catdad added the info needed Extra information is needed to address the issue label Oct 26, 2021
@catdad
Copy link
Owner

catdad commented Oct 26, 2021

Hmm... what have you done to investigate so far? I assume you have reason to believe this is an issue with this library and not an issue with the obfuscator?

@romua
Copy link
Author

romua commented Oct 26, 2021

@catdad just high level investigation. Also it is worth mentioned I'm using your wonderful library inside angular-electron app(so all kinds of angular minifications/optimizations are happening). It happens after obfuscation only(so my CI steps: build(works here)> obfuscate(errors here))

@claudevervoort
Copy link

claudevervoort commented Mar 16, 2022

I think this may be due to the main function being obfuscated, the code injected may not be able to run in a worker env. Not exactly sure why (like a transpiled function not available?)

https://github.com/catdad/canvas-confetti/blob/master/src/confetti.js#L133

@Ambrise
Copy link

Ambrise commented Jan 24, 2024

I have the same problem...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info needed Extra information is needed to address the issue
Projects
None yet
Development

No branches or pull requests

4 participants