Skip to content

Conversation

@gismya
Copy link
Contributor

@gismya gismya commented Sep 25, 2023

  • I have added automatic tests where applicable
  • The PR title is suitable as a release note
  • The PR contains a description of what has been changed
  • The description contains manual test instructions

Changes

Solves #154

Previous solution of using if (window?.addEventListener) { only worked for non browser implementations where window was set as undefined, not which never sets window at all. This adds a more thorough check for non-browser implementations to catch errors.

Test

@gismya gismya requested a review from a team as a code owner September 25, 2023 14:40
@gismya gismya merged commit 0f58b6c into main Sep 26, 2023
@gismya gismya deleted the handling-undefined-window-object branch September 26, 2023 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants