Skip to content

Comments

provide fallback for window.matchMedia#59

Open
thedamon wants to merge 1 commit intotylerkrupicka:masterfrom
thedamon:patch-1
Open

provide fallback for window.matchMedia#59
thedamon wants to merge 1 commit intotylerkrupicka:masterfrom
thedamon:patch-1

Conversation

@thedamon
Copy link

window.matchMedia does not exist in some environments (including jsdom). should fall back to light mode if matchMedia is not available instead of throwing an exception.

window.matchMedia does not exist in some environments (including jsdom). should fall back to light mode if matchMedia is not available instead of throwing an exception.
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.

1 participant