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

Event.target is undefined when the EventListener dispatched. #144

Open
uni-is-0kcal opened this issue Mar 12, 2021 · 1 comment
Open

Event.target is undefined when the EventListener dispatched. #144

uni-is-0kcal opened this issue Mar 12, 2021 · 1 comment

Comments

@uni-is-0kcal
Copy link

uni-is-0kcal commented Mar 12, 2021

hi

I want to refer to the object to which the event is dispatched. However, when I access the Target property of the event, it is undefined. What should I do?

ref�: https://developer.mozilla.org/ja/docs/Web/API/Event/target

@uni-is-0kcal
Copy link
Author

node.js is used as a client.
Since I will be communicating with multiple directories on the same server, I will add a property to the EventSource object for directory identification. Therefore, I need a reference to the target.
URL information alone is fine for determining the directory, but the parameter "origin" in the event object contains only the host name and port number and cannot determine the directory.

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

No branches or pull requests

1 participant