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

nodejs: call to undefined addEventListener causing problems #448

Open
bwalex opened this issue Jun 30, 2024 · 1 comment
Open

nodejs: call to undefined addEventListener causing problems #448

bwalex opened this issue Jun 30, 2024 · 1 comment

Comments

@bwalex
Copy link

bwalex commented Jun 30, 2024

(.addEventListener goog/global "beforeunload"

This bit of code unconditionally calls the global addEventListener in all ClojureScript environments, including node.js. I use Sente as a server in a nodejs environment, all compiled with shadow-cljs - if that makes any difference. I'm currently on 1.16.2, and tried to update to 1.19.2, which is how I ran into it.

@ptaoussanis
Copy link
Member

@bwalex Hi Alex- thanks for the report. PR welcome to exclude this behaviour from Node.js, otherwise I'll take care of this next time I'm on batched Sente work 👍

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

No branches or pull requests

2 participants