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

Adds validation for the storage event key #52

Merged
merged 1 commit into from
Apr 4, 2023
Merged

Adds validation for the storage event key #52

merged 1 commit into from
Apr 4, 2023

Conversation

aligent-phil
Copy link
Contributor

Clearing the local storage in Chrome triggers a storage event with a null value key. This causes an error when trying to access the match method.
This adds basic validation to prevent that from happening.
image

@jcubic
Copy link
Owner

jcubic commented Apr 4, 2023

Thanks for reporting and fixing the issue.

@jcubic jcubic merged commit 8523f35 into jcubic:master Apr 4, 2023
jcubic added a commit that referenced this pull request Apr 4, 2023
@aligent-phil aligent-phil deleted the bugfix/Add_key_validation_to_eventListener branch April 4, 2023 23:44
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

Successfully merging this pull request may close these issues.

None yet

2 participants