10
Cyanide
2y

I had been banging my head on an issue for 2 days. The solution?

Replaced
“window.addEventListener(“message”, callback)”

with
“window.onmessage = callback”

What. The. Actual. Fuck??!!

Aren’t they supposed to be the same thing?? It’s written on MDN’s article that the latter is an alternative way of doing the former.

What the fuck then? I am actually really pissed right now. Ragefully pissed.

Comments
Add Comment