SyntaxFix
Write A Post
Hire A Developer
Questions
Apparently, document.addEventListener() is unreliable, and hence, my error. Use window.addEventListener() with the same parameters, instead.
document.addEventListener()
window.addEventListener()